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
what happens in conversion stage in job processing?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
what are the various stages of job processing?
What do you understand by the term job time – out and how can you overcome that?
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
How does jcl act on code(if you take a cobol program)?
What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?
How dummy is used in jcl?
Is acct parameter mandatory?
Explain the function of dd name parameter with a 2 part structure; audit.report?
When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?
when can a job time-out occur? How to overcome that?
How to run cobol program using jcl?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What are the rules employed while naming the steps in a job?