AM HAVING A FILE WHICH CONTAIN 12 DATS OUT OF WHICH 4 ARE
DUPLICATES HOW TO REMOVE THE DUPLICATE FILES IN JCL? CAN I
GET THE PROGRAM FOR THIS
Answers were Sorted based on User's Feedback
Answer / girish kumar
Yes, Sort will do it for u.
//........Pgm=sort
........
.........
.........
//sysin DD *
sort fields=copy
SUM FIELDS=NONE
/*
| Is This Answer Correct ? | 5 Yes | 0 No |
A Sort program will do that for you. Just write
sumfiled=NONE. This will remove the duplicates for you.
| Is This Answer Correct ? | 2 Yes | 0 No |
Answer / garry
Yes, Sort will do it for u.
//........Pgm=sort
........
.........
.........
//sysin DD *
copy (complete statement)
SUM FIELDS=NONE
/*
| Is This Answer Correct ? | 2 Yes | 1 No |
How do You skip a Step In JCL?
How do you check the syntax of a JCL without running it?
What are the parameter in the job card wihtout which job won't run........
How do you access an uncatalogued dataset in a jcl?
Is there a way to check for an empty file in JCL other than using IEBCOMPR and the command PRINT COUNT(1)?
What is use of restart and how to use it?
how to override PROC? please give answer in details. Please mention how to write it in JCL. Thanks in advance.
how to concatenate datasets
what is the purpose of SYSOUT parameter in the DD statement?
Could anyone please suggest me what is the maximum length of data that can be pass as input in //sysin dd * This was asked in interview. TIA
What does the keyword DCB mean and what are some of the keywords associated with it?
Suppose a proc step has a DD statement like //ABC DD DSN=TEST.FILE1,DISP=SHR DSN=TEST.FILE2,DISP=SHR and the above DD name is overridden from the JCL as given below //procstepname.ABC DD DSN=TEST.FILE3 - Will the DD statement now have just TEST.FILE3 or it will be TEST.FILE3 and TEST.FILE2? Suppose if it is overridden twice like //procstepname.ABC DD DSN=TEST.FILE3 //procstepname.ABC DD DSN=TEST.FILE4 Will this give a JCL error? If not, what will be final output?