with out sorting how to copy records from one file to
another file using jcl.Mean I have one input file in which
the record are like 1,6,5,4,2,3(for example) and i want to
copy to output file from top to bottom(without sorting) like
3,2,4,5,6,1.so I want the JCL for this.cna any one can
answers?
Answer Posted / ramesh
Please find below sort card for same
//SYSIN DD *
INREC FIELDS=(1:1,10,11:SEQNUM,8,ZD)
SORT FIELDS=(11,8,ZD,D)
OUTREC FIELDS=(1:1,10)
/*
Here we have data from 1 to 10 columns , i am generating
seqence number from column 11 in descending order , which
is not part of record layout .
After generating Seqence number digits will get reversed .
| Is This Answer Correct ? | 19 Yes | 8 No |
Post New Answer View All Answers
What is the function of job statement in jcl?
is there any way to execute more than one proc in the same exec statement at the same time..?
We can use PASS with permanent datasets also. THEN Which is the condition in which we may use PASS (instead of KEEP) with permanent data sets, while there is no need to specify UNIT and VOL for them like temporary data sets (in cas we use KEEP for permanent data sets) ?
What is the function of //jcllib statement?
Is their any set of rules for dd? Explain.
What is the function of a dd statement?
What dd statement is used to supply the name of a dataset?
what is use of space parameter in dd statement?
How can an in-stream dataset be terminated?
what happens in execution stage in job processing?
how you can direct the data to spool using SYSOUT option?
Differentiate between addressing mode and run mode.
What is the function of dd disp parameter?
What is the use of disp parameter?
How can a stopped job be started again?