Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

why should SYSIN DD * statement should not be included inside a PROCedure snippet??? please answer this.. i need to know.

2502


How do you run a COBOL batch program from a JCL? How do you run a COBOL/DB2 program?

1330


How to submit a jcl from cics?

1208


What is multithreading in jcl?

1531


What is the significance of addrspc parameter in the exec statement?

1132


which parameter is use to declare the name of dataset in dd statement?

1322


Explain how can values be passed from the job stream to an executable program?

1316


How do you create a temporary dataset?

1247


Is it possible to left uncode disp? If yes, how?

1231


Explain about LMQUERY�give a dialog information about a data set

1511


What do you understand by the term notcat 2 – gs?

1296


I have 60 steps in the JCL and want to Execute Only First from PROC by overriding in JCL ?

1887


which utility is used a dummy utility?

1524


What are the difference between jcl and jes?

1664


Explain the function of a dd statement?

1279