Anyone have any idea how can i generate error report on a separate file from my output file. Eg. I would need to print the errors occured in the program.
Can i open 2 files and print to 2 files at the same time ?
Is there any URL where i can get help from ?
Thanks.
i don't know in what environment you are working, but COBOL is perfectly capable of processing (reading and/or writing) multiple files. Open two output files, or as many as you fancy, and write your output (= processed data) to one and your error report lines to another. Whether the error report file is actually written to a file or to a printer is no issue.
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.