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

the command to open a dataset directly from the JCL instead of opening it separately using 3.4 option.

7 Answers   IBM,


Can we use DISP=SHR in output file in JCL

0 Answers  


How many steps we can overide in the proc's?

2 Answers   CS,


How to submit jcl through a cobol program?

0 Answers  


How to execute step2,step1,step3 when step1,2&3 are in order

6 Answers   TCS,






how you can access an uncataloged dataset in a JCL?

0 Answers  


can a job be submitted through jcl only? is there another way to submit a job?

2 Answers   CSC,


hi iam learning mainframes,can anybody tell me how to check JCL errors.(after submiting the JCL we have check in spool or is there any other method)

8 Answers  


There are 2PROCS in a JCL. I want following conditions to be carried out 1) 1st PROC should be executed as such In second PROC 2) First 4steps should not be executed 3) 5th step should not be executed 4) 6th and 7th step should be executed The change should be done only in the JCL and PROC should be untouched ?

3 Answers   ADP,


how do u define a file in cobol and jcl ?

2 Answers   TCS,


What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?

9 Answers   GE, Xansa,


Can we able insert data into a PS file Using IEBUPDTE utility??? If Yes can anyone describe it please..

1 Answers  


Categories