Re: DFSORT Select First

2012-02-13 Thread Chambers, James
hanks James -Original Message- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Mike Wood Sent: 13 February 2012 14:30 To: IBM-MAIN@bama.ua.edu Subject: Re: DFSORT Select First James, Are the records already sorted based on the 'key' you are usin

Re: DFSORT Select First

2012-02-13 Thread Mike Wood
James, Are the records already sorted based on the 'key' you are using to select the duplicates? COPY does no sorting, just looks at the records in the sequence you already have. Mike Wood -- For IBM-MAIN subscribe / signoff /

DFSORT Select First

2012-02-13 Thread Chambers, James
Hi, The below JCL is including only the records I want but it does not only select the first duplicate. //SORT EXEC PGM=ICETOOL //TOOLMSG DD SYSOUT=* //DFSMSG DD SYSOUT=* //IN DD DISP=SHR,DSN=INPUT.FILE //T1 DD DSN=&&T1,DISP=(MOD,PASS),SPACE=(TRK,(5,5)) //OUT DD SYSOUT=* //OUTFI