How to find the number of duplicates in a file using Sort?
Answer Posted / abhijit saha
Hope this JCL explains your query
//COUNTDUP JOB ,'COUNT DUPLICT',
// MSGCLASS=Q,CLASS=D,
// NOTIFY=&SYSUID
//STEP010 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//IN DD DSN=ABCXYZ.UTIL.TEST,DISP=SHR
//RPT DD SYSOUT=*
//TOOLIN DD *
OCCUR FROM(IN) LIST(RPT) NOHEADER BLANK -
ON(1,2,CH) ON(VALCNT,U04)
/*
INPUT: ABCXYZ.UTIL.TEST
AB
AB
AB
DC
DC
PQ
PQ
Output:
AB 3
DC 2
PQ 2
| Is This Answer Correct ? | 17 Yes | 10 No |
Post New Answer View All Answers
why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.
How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?
How to submit a jcl from cics?
What is multithreading in jcl?
What is the significance of addrspc parameter in the exec statement?
which parameter is use to declare the name of dataset in dd statement?
Explain how can values be passed from the job stream to an executable program?
How do you create a temporary dataset?
Is it possible to left uncode disp? If yes, how?
Explain about LMQUERY�give a dialog information about a data set
What do you understand by the term notcat 2 – gs?
I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?
which utility is used a dummy utility?
What are the difference between jcl and jes?
Explain the function of a dd statement?