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 / piyush mani
obsly file will b either in form of ps or pds so we can
accept the input of user dynamically(sysin/parm) as a ws variable
like this
//sysin *
4
1
5
6
7
/*
//
here 4 is the no of record we r selecting and cobol progr will run the logic of file-open para 4 times
and then we can open the file
as per d user requirement...
this is a cobol approach but how 2 do it by using jcl
plz any1 tell me...
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
How would you understand error(execution phase)?
which utility is used to sort a file in jcl?
What is the function of a dd statement?
For what purpose steplib and joblib are used ?
in order to execute step2 a job after a return code of 8 in step1, what condition you will code in step2?
What is the significance of addrspc parameter in exec statement?
What is job control language?
by using cond parameter maximum 8 cond can be coded in single cond means ?explain
What is the maximum length of a single line of jcl?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC
Can we call instream to catalog and catalog to instream?
What is the function of the dd avgrec keyword in sms datasets?
what is a jcl?
What are steplib and joblib?
Is their any set of rules for dd? Explain.