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?



with out sorting how to copy records from one file to another file using jcl.Mean I have one input..

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

More JCL Interview Questions

how to concatenate datasets

5 Answers   EDS,


What is COND=ONLY ?

2 Answers  


What statement marks the beginning of an in-stream or cataloged procedure in jcl and assigns default values to parameters defined in the procedure?

0 Answers  


what is the compile process of cobol program expalin with code

0 Answers   IBM,


What do you understand by the term “keyword” with respect to jcl and what is the opposite of the term?

0 Answers  


What are the jcl procedures?

0 Answers  


hi guys what r the diff types of procs in jcl? bye ramya

4 Answers   ACS, Keane India Ltd,


I have three files for one step i need to override the third file how to do that in jcl?

1 Answers   UST,


Explain how can the submitting users racf authority be overridden in a job stream?

0 Answers  


What is the exact difference between PRTY and DPRTY

2 Answers   iGate,


how to skip the steps in JCl

2 Answers   EDS,


difference between internal sort and external sort

1 Answers  


Categories