Focal Point
Reg:-(Mainframes) Creating files in focus and sending thru cyberfusion

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/3821072451

February 14, 2006, 05:27 PM
Sandesh
Reg:-(Mainframes) Creating files in focus and sending thru cyberfusion
Hi,

I am using the below command to create a file in one of my focus programs.

DYNAM ALLOC FILE RLDB159A DA &FINFILE NEW CATLG

Once i create this file I will populate it with some data depending on some validations. And then send this file to some Windows system through Cyberfusion.

All this works fine if the file is not empty. IF the file is empty the record format of the file is not known and the Cyberfusion job fails to send the data stating that the Record format of the file is not valid.

Please find the attributes of the file created below.

General Data Current Allocation
Volume serial . . . : FOC00D Allocated cylinders : 20
Device type . . . . : 3390 Allocated extents . : 1
Organization . . . : PS
Record format . . . : ?
Record length . . . : 0
Block size . . . . : 0 Current Utilization
1st extent cylinders: 20 Used cylinders . . : 0
Secondary cylinders : 20 Used extents . . . : 0

Creation date . . . : 2006/02/02
Referenced date . . : 2006/02/14
Expiration date . . : ***None***


Can anyone please let me know what should be done in such scenario and how to mention the record format while creating a file in focus.


Thanks
Sandesh Gadgil
February 14, 2006, 05:35 PM
Leah
As I recall from olden days, you can add the DCB parameters as part of the file allocation, that in combination with set emptyreport on may help with your problem.

Good luck to you.


Leah
February 14, 2006, 07:32 PM
jimster06
A couple of other suggestions:
1. Test &LINES in Dialog Manager code to see if any lines were written then execute some code based on the result of the test.
2. See what SET EMPTYREPORT = ON does. This may put out an empty dataset.
3. Research the -MVS commands to see if one could be helpful in your case.
4 ? HOLD can tell you about the output dataset's format.

Like leah says, these are from the "olden" days.

HTH.


jimster06
DevStu WF 7.6.11
W7
HTML, PDF, EXL2K
February 24, 2006, 03:38 PM
Sandesh
Hi Huys,

Sorry for the late response. I was on vacation so could not respond. I will try and let you know.

Thanks once again for all your suggestions.


Thanks
Sandesh Gadgil