Most likely you opened the file previously within the program somewhere. However, if you have a program that uses the same file and it is being run as a previous job step within a PROC or procedure, and that step abends it can leave the file opened. If you are using IBM COBOL on a mainframe...
If the old files are input into step2 have the disposition of these files declared in step2 as (OLD,UNCTLG,KEEP) the new ones would be (NEW,CTLG,DELETE)that way if the step abends the old files will be kept and the new ones will be deleted.
I have never used Comp-1 or Comp-4. Comp-3 stands for packed decimal. The sign is dropped from each byte and placed at the end of the field. IE: F1F2F3 would be 123C. I think Comp-2 or just Comp is binary.
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.