I am in situation where i dont know how many files (actually those are reports) exactly i will need while coding a program. So it may happen that i need to generate 10 files this month and may require 15 files to generate for next month.
So i want to code JCL and write cobol program which will handle it on runtime. Can anyone suggestt any solution for this? Also i dont mind writting a code in some ither language like REXX or Easytrieve.
Joined: 23 Nov 2006 Posts: 19270 Location: Inside the Matrix
Hello raghabendra das and welcome to the forums,
For us to help, you probably need to post some actual details of your requirement.
One simple answer is to write your program with enough SELECT and FD statements to accomodate the maximum you will need to create from one execution. As these are all reports, the jcl can be either SYSOUTs or DUMMYs.
At runtime, the needed outputs could be opened, the others not.