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 |
in step1 of a jcl,disp=(mod,delete,delete) step02 exec pgm=ccc,cond=(0,le) will step02 be executed? i)never ii)always iii) iv)... i dont remember options
What do you understand by the term notcat 2 – gs?
What is the difference between Sysin,Sysout,Sysdbout and Sysudump?
I have Job A and Job B. I want to trigger Job B from Job A. Please advise.
I have 5 steps in my jcl ,I need to execute first three steps and then 2nd step again ,4th and 5th steps if rc of 2nd step is zero
How does jcl act on code(if you take a cobol program)?
List the different components of jcl statement?
what disp parameter we mention for creation of temporary dataset so that we can use it in later steps?
there are 10 steps in jcl how to execute the steps from step2 to step8 only
In order to continue a job after a return code of 12 in step1, what the step2 exec statement include?
How can i execute 5th step without executing first 4 steps?
what happens if job falls in loop ? how to resolve it ?