|
View previous topic :: View next topic
|
| Author |
Message |
l.nethaji
New User
Joined: 16 Mar 2008 Posts: 90 Location: tamil nadu
|
|
|
|
Hi ,
Can anyone help me with this. i need to remove the duplicates in my file based on the fields from (1 to 33 and 44 to 52) . I ran the below jcl but it was not successful.
| Code: |
//STEP1 EXEC PGM=ICETOOL
//TOOLMSG DD SYSOUT=*
//DFSMSG DD SYSOUT=*
//SORTIN DD DSN=DPRACE.D372988.TESTING,DISP=SHR
//SORTOUT DD DSN=DPRACE.D372988.TESTING.OUT3,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(120,100),RLSE),
// AVGREC=K
//SORTXSUM DD DSN=DPRACE.D372988.TESTING.XSUM3,
// DISP=(,CATLG,DELETE),
// SPACE=(CYL,(120,100),RLSE),
// AVGREC=K
//TOOLIN DD *
SELECT FROM(SORTIN) TO(SORTOUT)-
ON(1,33,44,8) FIRST DISCARD(SORTXSUM)
/*
|
Thanks,
Nethaji |
|
| Back to top |
|
 |
dick scherrer
Moderator Emeritus

Joined: 23 Nov 2006 Posts: 19243 Location: Inside the Matrix
|
|
|
|
Hello,
You need to post the diagnostic info generated by the run. Include all of the message id's and text. |
|
| Back to top |
|
 |
Frank Yaeger
DFSORT Developer

Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
Well, for one thing, your syntax is wrong. It should be:
| Code: |
SELECT FROM(SORTIN) TO(SORTOUT)-
ON(1,33,CH) ON(44,9,CH) FIRST DISCARD(SORTXSUM)
|
Note that you need a separate ON field for each key, and positions 44 to 52 have a length of 9, not 8.
If that doesn't give you what you want, then give more details of what you're trying to do including an example of the records in your input file and what you expect for output and the RECFM and LRECL of the input file. |
|
| Back to top |
|
 |
|
|
 |
All times are GMT + 6 Hours |
|