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 to execute 2nd and 4th steps among 5 steps in jcl proc?
What do you understand by the term notcat 2 – gs?
Which dd parameters are required?
what is use of dcb parameter in dd statement?
Explain the hierarchy levels in jcl?
Explain the function of //cntl statement?
What is multithreading in jcl?
what is DD statement is used in JCL?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
what is “Cond= even” and “Cond=only”?
how you can direct the data to spool using SYSOUT option?
How gdg are concatenated?
Mainframes gets a text file that contains the name of the file. Now using JCL i want to locate that file name in the mainframe system and perform further processing. Please tell how to proceed
What methodology can be adapted to transfer data to a program that is coded using the exec statement?
when does a dataset go uncataloged?