Thanks for your ideas. I got around the problem by using an earlier suggestion by webrabbit and papadba of defining the output dataset as MOD. That way the first time it writes to the dataset it sees it as NEW and on subsequent writes it MODs the dataset rather than overwriting and blanking it...
papadba,
I know that there is the "is INITIAL" option in the PROGRAM-ID clause. My program does not have it nor do I want it.
I want to avoid the problem of reinitialization so that the open-switch that is set to "1" after an open is not set back to the original "0" it is set to in working...
Thanks webrabbit.
I appreciate your help! If anyone else out there knows about a compiler or link option like "INIT" or "INITIAL" as described earlier:
"If the program is compiled/linked with the INIT or INITIAL option, this behavior wil result. Remove that option, if it is in use. The...
I understand that you can use the Program-ID clause to include IS INITIAL, my question is referring back to webrabbit's post about "If the program is compiled/linked with the INIT or INITIAL option, this behavior wil result. Remove that option, if it is in use. The option may have a different...
Thanks webrabbit.
I can not find any options for the compiler or link-editor that resemble or look like INIT or INITIAL. Is it possible for you to come up with the exact name?
Thanks again!
Thanks webrabbit and papadba. I really appreciate your quick responses. You are both right.
When I change the disp to MOD, I see the output.
I put in some displays to the program and found that the OPEN was executed more than once as you both correctly ascertained.
The program does have an...
I have a mainframe COBOL program that writes a report file to disk. When I try looking at the disk after the program completes successfully, the disk is empty.
If I run the exact same program and put the report out to SYSOUT, I can see the output that is written out.
What can be causing it...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.