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

Error ICE126A: Sortin and Sortout has same LRECL and RECFM


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

New User


Joined: 29 Jan 2006
Posts: 19

PostPosted: Mon Jan 22, 2007 6:15 pm
Reply with quote

Hi,

I am getting this error while trying to use sort.

ICE143I 0 BLOCKSET COPY TECHNIQUE SELECTED
ICE000I 1 - CONTROL STATEMENTS FOR 5740-SM1, DFSORT REL 14.0 - 14:03 ON MON JAN
SORT FIELDS=COPY
INREC FIELDS=(1:1,4)
ICE201I 0 RECORD TYPE IS V - DATA STARTS IN POSITION 5
ICE126A 0 INCONSISTENT *INREC IFTHEN 0 REFORMATTING FIELD FOUND
ICE052I 3 END OF DFSORT


The Sortin and Sortout has PS files with same LRECL and RECFM
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jan 22, 2007 6:18 pm
Reply with quote

Do you realize that the first four bytes in a variable length record is the length? What are you trying to accomplish?
Back to top
View user's profile Send private message
kitts

New User


Joined: 29 Jan 2006
Posts: 19

PostPosted: Mon Jan 22, 2007 6:28 pm
Reply with quote

I am having a lrecl of 121 in the input file and i want to have only the first 4 characters in the output file.

I am failing to achieve it with the sort card given as above.
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Mon Jan 22, 2007 6:33 pm
Reply with quote

Sort is telling you that the input is variable length, if you want the first four bytes of data, you will have to specify 8 bytes. The output will be variable.
Back to top
View user's profile Send private message
kitts

New User


Joined: 29 Jan 2006
Posts: 19

PostPosted: Mon Jan 22, 2007 7:37 pm
Reply with quote

Thnx a lot William I finally achieved by using the VTOF function. [/u]
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


Joined: 15 Feb 2005
Posts: 7129
Location: San Jose, CA

PostPosted: Mon Jan 22, 2007 10:03 pm
Reply with quote

kitts,

The ICE126A error you received is described in the Explanation of the ICE126A message in "DFSORT Messages, Codes and Diagnosis Guide" as follows:

Quote:

A single field containing only bytes from the RDW was specified for variable-length records.

Example (variable-length input):

Code:

   OUTREC BUILD=(1,4)



You can access the MCD from:

Use [URL] BBCode for External Links

If you want a VB output file with the first 4 data bytes, you can use:

Code:

   INREC FIELDS=(1,8)


or if you want an FB output file with the first 4 data bytes, you can use:

Code:

   OUTFIL VTOF,BUILD=(5,4)
Back to top
View user's profile Send private message
kitts

New User


Joined: 29 Jan 2006
Posts: 19

PostPosted: Tue Jan 23, 2007 1:59 am
Reply with quote

Thnx Frank for your guidance. I have used the 2nd option!
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 VB to FB - Finding LRECL SYNCSORT 4
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