You don't have to do anything. In your sub-program, you need to know when to open the file, process the file and close the file. The main program does not need to know a thing (unless you want it to) and the JCL is for everthing in the run-unit, not just the main program.
- These users thanked the author BillyBoyo for the post:
- gouravar (Wed Jul 30, 2014 12:48 am)