Ignore the sign nibble?  Or am I missing something?

//SORT     EXEC PGM=SORT         
//SORTIN   DD  *                 
-  -  5 Line(s) not Displayed
//SYSIN    DD  *                 
 SORT  FIELDS=(1,2.5,BI,A)     
//SORTOUT  DD  SYSOUT=*,LRECL=80 
//SYSOUT   DD  SYSOUT=*

Where the 5 lines not displayed look like this in hex

00244444444444444
00C00000000000000
-----------------
                 
00144444444444444
00C00000000000000
-----------------
                 
00244444444444444
00D00000000000000
-----------------
                 
00144444444444444
00D00000000000000
-----------------
                 
00344444444444444
00C00000000000000

SORTOUT in SDSF then looks like this in hex

00144444444444444
00C00000000000000
-----------------
                 
00144444444444444
00D00000000000000
-----------------
                 
00244444444444444
00C00000000000000
-----------------
                 
00244444444444444
00D00000000000000
-----------------
                 
00344444444444444
00C00000000000000

This is documented in the SyncSort manual under the FIELDS parameter of the
SORT statement:

"The length value indicates the length of the control field. The length
value must be
an integer number of bytes except for the length of a binary control field
which can
be specified in bits. For example, a length value of 0.5 refers to a binary
control field
5 bits long.

"For signed fields, the length value must include the area occupied by the
sign."

Obviously that last line only applies if you're actually interested in the
sign.

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to