Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / yogendra shinde

Hi,
I don't know the exact answer to this query.
But I have following approach.

Suppose I have a cobol pgm (say) PGM123 that is picking up
files randomly. (We definately need 1 application pgm to
process any of those 10 files randomly. This is my basic
assumption)
I will code a PARM or SYSIN DD * where in my customer can
change order of selection of files .

Say if customer enters PARM as ABCD in order then I will
move this PARM ABCD in a working storage variable in COBOL
PGM and will read each byte A (assign to process file-1)
if second byte is B then process file-2 of third byte is C
then process file-3 and so on. If the cutomer changes this
parm as EDA then files processed will be file-5 then file-4
then file-1.

If any body has different approach pls let me know.

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to run batch program without jcl?

11484


I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?

1166


Explain how can the disposition of sysout datasets be set for an entire jobstream?

1070


which utility is used to sort a file in jcl?

1203


what is the purpose of coding notify parameter in job statement?

1150


In job processing, what happens in conversion stage?

1176


List the various advantages of using jcl language?

1435


Is acct parameter mandatory?

1185


what is use of space parameter in dd statement?

1257


Which statement is used to identify the private libraries in job?

1171


Name the parameters which can be used to limit the number of records written to a sysout dataset?

1133


What are hierarchy levels in jcl?

1509


What statement can be used to send data to another mvs jes3 node?

1619


How can a jobs execution priority be modified?

1275


What is catelog procedure and how many catelog procedure to use in one job?

8649