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 / yogendra shinde
Hi,
I don't know the exact answer to this query.
But I have following approach.
Suppose I have a cobol pgm (say) PGM123 that is picking up
files randomly. (We definately need 1 application pgm to
process any of those 10 files randomly. This is my basic
assumption)
I will code a PARM or SYSIN DD * where in my customer can
change order of selection of files .
Say if customer enters PARM as ABCD in order then I will
move this PARM ABCD in a working storage variable in COBOL
PGM and will read each byte A (assign to process file-1)
if second byte is B then process file-2 of third byte is C
then process file-3 and so on. If the cutomer changes this
parm as EDA then files processed will be file-5 then file-4
then file-1.
If any body has different approach pls let me know.
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
For what purpose steplib and joblib are used ?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
What is the function of job statement in jcl?
IIN APITUDE THEY GAVE ONLY 10 QUESTIONS.. THEY ARE SIMPLE ONE FROM NUMBER SERIES,BOATS,TIME & DISTANCE,PROFIT &LOSS,FIND OUT THE NUMBER ? 9 25 4 36 81 64 49 AND surveillance SPELLINGS E.T.C
How jcl work to handle various input output file operations?
What are the difference between jcl and jes?
How can unused space allocation be returned to the system when a dataset is closed?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
What is the purpose of the dd keylen parameter?
What are the 2 types of parameters in dd statement?
a dd statement has 2 types of parameters. Name them?
What is the use of symbol // in jcl?
How can the submitting users racf authority be overridden in a job stream?
What is the syntax of JCL statement?