Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Couldn't reformat the field - REFORMATTING FIELD ERROR

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Couldn't reformat the field - REFORMATTING FIELD ERROR
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Sat Jan 28, 2012 2:40 pm    Post subject: Reply to: Couldn't reformat the field - REFORMATTING FIELD E
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7315

PostPosted: Sat Jan 28, 2012 4:46 pm    Post subject: Reply to: Couldn't reformat the field - REFORMATTING FIELD E
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am
No new posts Need help with below DB2 error ashek15 DB2 3 Sat Mar 18, 2017 5:56 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us