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

what happens in conversion stage in job processing?

1225


Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?

2761


what are the various stages of job processing?

1284


What do you understand by the term job time – out and how can you overcome that?

1033


If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?

1310


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

1294


What does it mean by Restart and Checkpoint in JCL ? How are checkpoints being taken and what is their usage ? How to use Checkpoint macro on a JOBSTEP ?

9754


How dummy is used in jcl?

1149


Is acct parameter mandatory?

1216


Explain the function of dd name parameter with a 2 part structure; audit.report?

1456


When The Define Jcl Is Not Available, How Can You Get Information About A Vsam File's Organisation ?

1226


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

1293


How to run cobol program using jcl?

1238


Matching Logic in Jcl not in cobol.Could any one please answer this question

4156


What are the rules employed while naming the steps in a job?

1141