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
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
List the different components of jcl statement?
Is there any command to check wether the ps file is in sorted order?
what is “Cond= even” and “Cond=only”?
What are the 2 types of parameters in dd statement?
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
when does a dataset go uncataloged?
How can a fb file convert to vb file using sort program?
Name what parameter directs the output of the job log dataset?
what is DSN parameter and DISP parameter is used for?
Matching Logic in Jcl not in cobol.Could any one please answer this question
What do you understand by the term notcat 2 – gs?
I want my job (careerride) to be executed in 1 minute and 2 seconds. How do I do that?
when can a job time-out occur? How to overcome that?
what happens when COND is coded in JOB statement and when COND is coded inside EXEC statement?