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 jcl is used for testing batch programs?
What are the 2 types of parameters in dd statement?
How can a fb file convert to vb file using sort program?
In job processing, what happens in conversion stage?
How can values be passed from the job stream to an executable program?
What parameter directs the output of the job log dataset?
How to pass data to a program that is coded in an exec statement?
Explain the function of job statement in jcl?
Many jcl statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
how do you access an uncataloged dataset in a jcl?
What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?
How to compare two files in SYNCSORT and on the mismatch record should be deleted from second file.
Explain the function of the steplib dd statement?
Differentiate between the joblib and the steplib statements?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?