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
Explain the function of //jcllib statement?
List the different components of jcl statement?
How do you submit a job for execution?
In sms datasets, what is the function of the dd mgmtclas keyword?
What does a disposition of (MOD,DELETE,DELETE) mean ?
How dummy is used in jcl?
what is use of dcb parameter in dd statement?
When you specify multiple datasets in a JOBLIB or STEPLIB, what factor determines the order?
is there any way to execute more than one proc in the same exec statement at the same time..?
I have a COBOL program that ACCEPTs some input data. How do you code the JCL statement for this?
What statement can be used to send data to another mvs jes3 node?
I have a job called careerride and some steps in it as step1,step2. But I want to execute step2 before step1 ? How do I do that?
a set statement is used to define commonly used symbolic across job steps or procedures. It initializes the previous values in the symbolic names. It has to be defined before the first use of the symbolic names in the jcl. State whether true or false?
How to remove the spaces at end of each record in the output file Via COBOL program? note: The file has a VB length ----TRY
How do you access an uncatalogued dataset in a jcl?