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
 

 

Error ICE126A: Sortin and Sortout has same LRECL and RECFM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Error ICE126A: Sortin and Sortout has same LRECL and RECFM
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: 3158
Location: Tucson AZ

PostPosted: Mon Jan 22, 2007 6:18 pm    Post subject:
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    Post subject:
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: 3158
Location: Tucson AZ

PostPosted: Mon Jan 22, 2007 6:33 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Mon Jan 22, 2007 10:03 pm    Post subject:
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:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html

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    Post subject:
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    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 OO COBOL compile error Virendra Shambharkar COBOL Programming 3 Tue Jan 10, 2017 6:05 pm
No new posts Copy RECFM =VB TO FB file with RECL =... sahil41352 DFSORT/ICETOOL 3 Wed Dec 28, 2016 11:29 pm
No new posts S922 Error yuvan ABENDS & Debugging 3 Fri Dec 02, 2016 6:58 pm
No new posts Invoke Webservice Fails with DFHPI100... divated CICS 2 Thu Nov 24, 2016 5:57 pm
No new posts Error during restore rename archanamuthukrishnan All Other Mainframe Topics 2 Fri Oct 14, 2016 3:30 pm


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