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


Please Help Members By Posting Answers For Below Questions

Differentiate between addressing mode and run mode.

615


what happens in execution stage in job processing?

652


How to pass the parameter in parm using linkage section ? (syntax)?

645


how do you create a dataset in a jcl with the same file organisation as that of another existing dataset?

799


what is SOC4 error?

734






what is the compile process of cobol program expalin with code

1998


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

811


write a jcl to execute a job by 7:00 am on jan 20,1986?

697


Define concatenating?

663


What are s0c1, s0c4, s0c5, s0c7 and socb?

697


Is it possible to left uncode disp?

711


What is NOTCAT ?

738


when can a job time-out occur? How to overcome that?

753


What are the 2 types of parameters in dd statement?

642


what JCL Procedures?

697