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

Name the statement which can be used to send data to another mvs jes3 node?

1181


what is “Cond= even” and “Cond=only”?

1313


What is use of restart and how to use it?

1317


What is 'mounting' of volumes ? Is there anything that a programmer can do in it ? How to find currently mounted volume ?

2569


What are the 2 types of parameters in dd statement?

1159


What is the function of dd disp parameter?

1137


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

1193


whats the diff bw the evaluate also and and?

2344


How can a stopped job be started again?

1193


how would you create a temporary dataset? And where will you use them?

1407


i want to store 20 digits . how will u do it in cobol ?

1422


Explain how can the attributes of one sms dataset be copied to another dataset?

1218


Can an individual step be restricted from using all the jobs allowed cpu time?

1557


Explain the function of the dd dcb keyword?

1258


Differentiate between addressing mode and run mode.

1085