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 system will identify whether user wants to create PS or PDS? If answer is SPACE parameter then why we need to pass ps or po as dataset organisation while creation

1 Answers  


What parameters can be used to limit the number of records written to a sysout dataset?

0 Answers  


Can anyone tell me the syntax for printing two files at two different destinations in a single step?

3 Answers  


Suppose there r total 10 steps. Out of which i want to execute only the 7th step. How can i do that....????

3 Answers  


what is DSN parameter and DISP parameter is used for?

0 Answers  






how to run JCL thru COBOL.

1 Answers   Patni,


How can we increment subscript and index?

1 Answers   CTS, IBM,


What is the use of ikjeft1b utility in jcl?

1 Answers  


hello friends ,i have exam in Hsbc,pls any on send me placement papers and technical questions on mainframes,thank u

0 Answers   HF, iNautix,


what is inrec fields and outrec fields in sorting

3 Answers   Fidelity,


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?

0 Answers   IBM,


how to concatenate datasets

5 Answers   EDS,


Categories