View previous topic :: View next topic
|
Author |
Message |
sureshmurali Warnings : 1 New User
Joined: 25 Nov 2010 Posts: 70 Location: Sivakasi, India
|
|
|
|
I just tried this with the help of manual. But it produces
Code: |
ICE111A E REFORMATTING FIELD ERROR |
Sort Card -
Code: |
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
OUTREC FIELDS=(4,6,CHANGE=(14,
C'SURESH',C'SURESHKUMAR',
C'RAMESH',C'RAMESHKUMAR',
C'RAJESH',C'RAJESHKUMAR',
NOMATCH=(4,6)))
/* |
Input file -
Code: |
**********************
100SURESH101001230
200RAJESH202002460
100SURESH101001000
200RAJESH202001460
300RANGSH300500615
400RAMESH
********************** |
Input is a fixed record length file of 80 bytes. Could any one tell why this occurs ? Thanks in advance. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
Can you please post all the output messages from your sort step? |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
It is one of those you can stare at and stare at. Leave for a while. Come back to and spot that the closing bracket for the length of fields and values to change is after the NOMATCH instead of before it.
Try this instead:
Code: |
SORT FIELDS=(1,3,CH,A)
OUTREC FIELDS=(4,6,CHANGE=(14,
C'SURESH',C'SURESHKUMAR',
C'RAMESH',C'RAMESHKUMAR',
C'RAJESH',C'RAJESHKUMAR'),
NOMATCH=(4,6)) |
|
|
Back to top |
|
|
sureshmurali Warnings : 1 New User
Joined: 25 Nov 2010 Posts: 70 Location: Sivakasi, India
|
|
|
|
Thanks Bill. It is working. |
|
Back to top |
|
|
|