Just wondering if there is any way to dynamically allocate filenames for output files using RM/COBOL. The code I am writing does not make use of JCL at all so that would not be an option.
1. Use a data-item name instead of a literal in the ASSIGN clause of the SELECT statement, and store the pathname of the file as the value of the data-item prior to OPENing the file, as explained in the RM/COBOL Language Reference Manual; or
2. Use environment variables, as explained in the RM/COBOL User Guide.
BTW, 6.09 is an extremely old version. Have you considered upgrading?
Thanks, Tom. Yeah, I know our version is ancient. The plan is to ride with it until we switch to another platform. That was in the works before I began work here.
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.