IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Couldn't reformat the field - REFORMATTING FIELD ERROR


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sureshmurali
Warnings : 1

New User


Joined: 25 Nov 2010
Posts: 70
Location: Sivakasi, India

PostPosted: Sat Jan 28, 2012 12:46 pm
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Jan 28, 2012 2:40 pm
Reply with quote

Can you please post all the output messages from your sort step?
Back to top
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Sat Jan 28, 2012 4:46 pm
Reply with quote

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
View user's profile Send private message
sureshmurali
Warnings : 1

New User


Joined: 25 Nov 2010
Posts: 70
Location: Sivakasi, India

PostPosted: Sat Jan 28, 2012 5:28 pm
Reply with quote

Thanks Bill. It is working.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
Search our Forums:

Back to Top