View previous topic :: View next topic
|
Author |
Message |
ssprabhu
New User
Joined: 25 Apr 2005 Posts: 67 Location: pune
|
|
|
|
Hi,
One more query...
In PGM output file fields defined in pgm as follows... i need to sort on the output file XXX and on YYY..
XXX PIC S9(9) USAGE COMP.
YYY PIC S9(4) USAGE COMP.
Which sort card is correct ??
SORT FIELDS=(1,9,CH,A,10,13,CH,A)
or
SORT FIELDS=(1,4,CH,A,5,2,CH,A) |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Sprabhu,
Please use below sort card
Code: |
SORT FIELDS=(1,4,BI,A,5,2,BI,A) |
|
|
Back to top |
|
|
ssprabhu
New User
Joined: 25 Apr 2005 Posts: 67 Location: pune
|
|
|
|
Thanks Gupta...
But r u sure .....BI or CH ...i guess Even Ch also works... |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
If a COMP field is signed, then FI is the correct format.
If a COMP field is unsigned, then BI is the correct format. CH can also be used as long as options that affect CH (like ALTSEQ or LOCALE) are not used. BI is safer.
For example:
If X'FFFF' represents -1, then the COMP field is signed and FI should be used.
If X'FFFF' represents 65535, then the COMP field is unsigned and BI should be used. |
|
Back to top |
|
|
|