I have 3 duplicate records in a file .
I want to eliminate 1st, 2nd and copy 3rd one only . HOW ?
Answer Posted / vignesh1988i
so , first sort the PS using JCL SORT utility and update the
PS file.
find the duplicates using XSUM . and write the duplicates
alone in a seperate PS.
take the seperate PS and give the control condition inside
SYSIN DD * as , sort fields with skiprec(3), since u need
only the 3rd one to copy
| Is This Answer Correct ? | 16 Yes | 2 No |
Post New Answer View All Answers
What is the difference between the positional and keyword parameters? Give examples.
What is use of restart and how to use it?
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 are some jcl statements that are not allowed in procedures?
Explain the function of //cntl statement?
Where can program checkpoints be stored for use in a restart?
What is the function of //jcllib statement?
Name what parameter directs the output of the job log dataset?
What are the difference between jcl and jes?
List the different components of jcl statement?
How can the attributes of one sms dataset be copied to another dataset?
A chkpt is the parameter coded for multi-volume qsam datasets in a dd statement. When a chkpt is coded as chkpt=eov, a checkpoint is written to the dataset specified in the sysckeov statement at the end of each volume of the input/output multi-volume dataset. State whether true or false?
what is the use of IEBGENER utility?
what sort card you will use to copy the data from one dataset to another dataset?
Suppose I have five jobs to do. But I want to hold one?