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
Are there any set of rules for the names of the steps used in a job? What are they?
What is the maximum length of a single line of jcl?
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
What is the purpose of dd dummy statement?
Explain the purpose of dd dummy statement?
Name a few IBM utility programs, and explain its function.
List the different jcl statements that are not permitted in the procedures?
Is it possible to define dd statements as you want?
which parameter is used to check the syntax of a jcl without executing it?
when can a job time-out occur? How to overcome that?
Explain the job statement in jcl?
Can we call instream to catalog and catalog to instream?
Matching Logic in Jcl not in cobol.Could any one please answer this question
List the various advantages of using jcl language?
For what purpose steplib and joblib are used ?