View previous topic :: View next topic
|
Author |
Message |
kitts
New User
Joined: 29 Jan 2006 Posts: 19
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
kitts
New User
Joined: 29 Jan 2006 Posts: 19
|
|
|
|
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 |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
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 |
|
|
kitts
New User
Joined: 29 Jan 2006 Posts: 19
|
|
|
|
Thnx a lot William I finally achieved by using the VTOF function. [/u] |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
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):
|
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:
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 |
|
|
kitts
New User
Joined: 29 Jan 2006 Posts: 19
|
|
|
|
Thnx Frank for your guidance. I have used the 2nd option! |
|
Back to top |
|
|
|