View previous topic :: View next topic
|
Author |
Message |
dalib123
New User
Joined: 14 Oct 2008 Posts: 7 Location: india
|
|
|
|
Hi
SORT FIELDS=(18,4,BI,A,
1,2,BI,A,
5,15,CH,A)
01 TOP01.
10 S-ORDDPROD-NUMB PIC S9(4) USAGE COMP.
10 N-PRODASM PIC X(15).
10 C-ORDCNCLN-NUMB PIC S9(9) USAGE COMP.
is the correct way to sort the file firstly with C-ORDCNCLN-NUMB then S-ORDDPROD-NUMB and finally by N-PRODASM.. |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
I think you meant
Code: |
SORT FIELDS=(18,4,BI,A,
1,2,BI,A,
3,15,CH,A) |
didn't you? |
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
Quote: |
10 C-ORDCNCLN-NUMB PIC S9(9) USAGE COMP. |
Should this not be 18,5,BI,A ? |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Quote: |
10 C-ORDCNCLN-NUMB PIC S9(9) USAGE COMP. |
I thought that has to be a 18,4,FI,A |
|
Back to top |
|
|
Terry Heinze
JCL Moderator
Joined: 14 Jul 2008 Posts: 1249 Location: Richfield, MN, USA
|
|
|
|
Yes, BI means unsigned binary, FI is signed binary. |
|
Back to top |
|
|
|