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 / 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 |
the command to open a dataset directly from the JCL instead of opening it separately using 3.4 option.
Can we use DISP=SHR in output file in JCL
How many steps we can overide in the proc's?
How to submit jcl through a cobol program?
How to execute step2,step1,step3 when step1,2&3 are in order
how you can access an uncataloged dataset in a JCL?
can a job be submitted through jcl only? is there another way to submit a job?
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)
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 ?
how do u define a file in cobol and jcl ?
What is SORT ? How do we eliminate duplicate records ? How do I select some records using SORT ?
Can we able insert data into a PS file Using IEBUPDTE utility??? If Yes can anyone describe it please..