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 / tony prabu

First of all you can not just do this by jCL alone you
definitely need a application program like COBOL to do this.

Then depending upon the selection using sysin we can select
the file usin the EWVALUATE verb etc.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the JCL statement consists of?

697


Can I share my data with other jobs? How?

669


For what purpose steplib and joblib are used ?

688


What are the parameter we cannot use in procedure? How many instream we can write in single jcl?

582


How can unused space allocation be returned to the system when a dataset is closed?

811






How does jcl act on code(if you take a cobol program)?

705


Hello Guys, I have 1+ Year Experience in MAINFRAME TESTING. After 1 Week I have an Interview With a Company on Mainframe Testing. Please Could You Guys Please Suggest me What Sections Should I prepare ?? ___Tell Me the Topic Or Appropriate Site & Links. ?? ---------------Thank You

2263


how can you check if a file is empty using jcl?

815


In sms datasets, what is the function of the dd mgmtclas keyword?

859


Is automatic restart possible in jcl?

736


List the different components of jcl statement?

691


Explain the function of the steplib dd statement?

644


Mention the types of job control statements?

686


Explain how can the submitting users racf authority be overridden in a job stream?

671


What methodology can be adapted to transfer data to a program that is coded using the exec statement?

605