There are a set of 10 files and a customer will be
selecting random no of files(i.e they may be more than 2,
may not be in the order).Sometimes he might just select
one file or sometimes no files at all.How do you code a JCL
for this? Is it possible to code just JCL alone for this
problem?
Answer Posted / shridhar
Depending on option it is easy. relate every entry in cics
to a no or alphabet. This use as evaluate in cobol.
as per options create a JCL in cobol an submit it to intrdr
for further process.
Your option on CICS screen and file names relating to those
options should/will be matching.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What do we mean by 'Virtual storage' for a dataset and for a JOBSTEP ? What is the significance of the following statement for a programmer 'Virtual storage results in program addresses being independent of the addresses that actually exist in a computer' ?
What are the rules employed while naming the steps in a job?
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
how to compare two datasets without using superce because output is limited to 133 bytes
What does a disposition of (new,catlg,keep) for a dsn mean?
Does jcl support automatic restart?
Is it possible to left uncode disp? If yes, how?
How can an in-stream dataset be terminated?
Explain the function of the steplib dd statement?
Is their any set of rules for dd? Explain.
what is SOC4 error?
Describe the various parameters utilized in the creation of a gdg?
How to run cobol program using jcl?
I have a cobol db2 program(PGM A) where other program (PGM B) will call this program and passes some 50 fields data to PGM A. PGM A has some layout in which it receives the data from PGM B. And this layout has been copied in the linkage section pf PGM A. After getting the data, PGM A writes the data in a flat file in the same layout which it receives from PGM B. PGM B is a simple COBOL pgm. Please provide a JCL to run these programs.
What are the 4 fields in dd statement?