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
Differentiate between addressing mode and run mode.
what happens in execution stage in job processing?
How to pass the parameter in parm using linkage section ? (syntax)?
how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?
what is SOC4 error?
what is the compile process of cobol program expalin with code
What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?
write a jcl to execute a job by 7:00 am on jan 20,1986?
Define concatenating?
What are s0c1, s0c4, s0c5, s0c7 and socb?
Is it possible to left uncode disp?
What is NOTCAT ?
when can a job time-out occur? How to overcome that?
What are the 2 types of parameters in dd statement?
what JCL Procedures?