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
What are the 4 fields in dd statement?
how would you create a temporary dataset? And where will you use them?
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling jcl?
What is the function of dd disp parameter?
Suppose there are 2 Input files Infile-1 and Infile-2. Both the Files contain Employee Records. You need to compare both the files and Write the Common Records in third file named Outfile. How can we do this using File-Aid?
How to pass data to a program that is coded in an exec statement?
write a jcl to execute a job by 7:00 am on jan 20,1986?
Can an individual step be restricted from using all the jobs allowed cpu time?
List in order the hierarchical levels of jcl?
i want to store 20 digits . how will u do it in cobol ?
The disp in the JCL is MOD and the program opens the file in OUTPUT mode. What happens ? The disp in the JCL is SHR and the pgm opens the file in EXTEND mode. What happens ?
what is the use of IEBGENER utility?
What is the function of a dd statement?
Is their any limit for data sets?
Step 1 RC 4 Step 2 Step 3 I want to know the COND parameter which can be coded in step 2 or 3. Step 2 should be executed based on Step 1 RC and Step 3 should not be executed based on step 1's RC