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


Please Help Members By Posting Answers For Below Questions

what is use of dsn parameter in dd statement?

666


what is DSN in JCL and what are the parameters to declare the DSN?

714


What is jcl in mainframe?

684


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

748


Is it possible to left uncode disp?

711






Does jcl support automatic restart?

757


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

737


what is a jcl?

685


What is the syntax of JCL statement?

688


What is notcat 2 - gs?

930


What is multithreading in jcl?

934


what are JCLLIB and STEPLIB in JCL?

670


when does a dataset go uncataloged?

826


Explain the purpose of dd * statement in jcl?

631


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1341