View previous topic :: View next topic
|
Author |
Message |
vkb
New User
Joined: 09 May 2009 Posts: 1 Location: india
|
|
|
|
Hi,
i need to write a sort card in which, i'm moving PIC 9(9) to S9(9) COMP. How can i write this in a sort card |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
Something like StartingPosition,Length,ZD,TO=PD?
Or:
SyncSort for z/OS Programmer’s Guide wrote: |
The first field (1,10,ZD,PD) begins in position 1. This field was a 10-byte ZD field that
began in position 1 before OUTREC processing. It will be converted to a 6-byte PD field
in the output record, because 6 bytes are required to contain 10 decimal digits as a PD
field. |
|
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
If the target field is COMP, TO=PD won't work as needed. They are not the same format. . . PD is Packed Decimal (COMP-3). |
|
Back to top |
|
|
CICS Guy
Senior Member
Joined: 18 Jul 2007 Posts: 2146 Location: At my coffee table
|
|
|
|
dick scherrer wrote: |
If the target field is COMP, TO=PD won't work as needed. They are not the same format. . . PD is Packed Decimal (COMP-3). |
My bad, sometimes I see what is not there.....
Replacing the PD with BI of FI should work...... |
|
Back to top |
|
|
|