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

I want to join to input files and write the matching fields on to an output file but i dont want the output file a sorted one

2441


A dd statement consists of 4 fields. Name them?

1418


Is automatic restart possible in jcl? If yes, how?

1109


How jcl work to handle various input output file operations?

1156


What are some jcl statements that are not allowed in procedures?

1228


define cond parameter in jcl?

1262


what is the JCL statement consists of?

1181


what EXEC statement is and what is the syntax of EXEC statement used in JCL?

1157


Describe the various parameters utilized in the creation of a gdg?

1150


What is the difference between the positional and keyword parameters? Give examples.

1247


Can I send output of job to my remote device careerride123?

1125


What is the maximum length of a single line of jcl?

1349


How can a stopped job be started again?

1185


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

2448


Name what parameter directs the output of the job log dataset?

1046