View previous topic :: View next topic
|
Author |
Message |
simimathew
New User
Joined: 26 Jan 2006 Posts: 23 Location: London
|
|
|
|
Hi,
I have a requirement to identify the duplicates in a flat file. I know SUM FIELDS=NONE will eliminate the duplicates, but I would like to retain the duplicates and insert a column next to the field which will give the no: of occurences (duplicates) of the field within the file.
Could somebody please help me with the syntax for this requirement?
Thanks in advance,
Simi |
|
Back to top |
|
|
simimathew
New User
Joined: 26 Jan 2006 Posts: 23 Location: London
|
|
|
|
I have added this query to the wrong forum accidentally. Not sure how to move it to DFSORT forum now. Could any of the moderators help please?
Many Thanks,
Simi |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Simi,
It's not clear what you want to do. Please show an example of the records in your input file (relevant fields only) and what you expect for output. Explain the "rules" for getting from input to output. Give the starting position, length and format of each relevant field. Give the RECFM and LRECL of the input files.
Also, run this job and show the //SYSOUT messages you receive, so I can see what level you're at:
Code: |
//S1 EXEC PGM=SORT
//SYSOUT DD SYSOUT=*
//SORTIN DD *
RECORD
//SORTOUT DD DUMMY
//SYSIN DD *
OPTION COPY
/*
|
|
|
Back to top |
|
|
|