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

1) SORT FIELDS=(20,4,CH,D,10,3,CH,D) OUTREC FIELDS=(7:20,4,C' FUTURE ',20,2,10,3,1Z,1,9,13,7, 24,57,TRAN=LTOU,6X'FF') This example illustrates how a fixed-length input data set can be sorted and reformatted for output. The SORTIN LRECL is 80 bytes. The reformatted output records are fixed length with a record size of 103 bytes. SOLRF (the IBM-supplied default) is in effect, so unless the SORTOUT LRECL is specified or available, it will automatically be set to the reformatted record length of 103. in the above example i have some doubts that a) sort fields=(20,4,CH,D,10,3,CH,D) -what exactly it does and this fields related to output record fields or input record fields b)outrec used to refprmat the records after sorting that means could please reply me as soon as possible Thanks. Venkat

7788


List the different components of jcl statement?

1077


Is there any command to check wether the ps file is in sorted order?

2877


what is “Cond= even” and “Cond=only”?

1298


What are the 2 types of parameters in dd statement?

1146


I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

2438


when does a dataset go uncataloged?

1295


How can a fb file convert to vb file using sort program?

1322


Name what parameter directs the output of the job log dataset?

1044


what is DSN parameter and DISP parameter is used for?

1138


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

4149


What do you understand by the term notcat 2 – gs?

1235


I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?

1224


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

1276


what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?

1283