View previous topic :: View next topic
|
Author |
Message |
chinnielr
New User
Joined: 11 Jul 2005 Posts: 87
|
|
|
|
Hi All,
I need to force zeroes to a zoned decimal in a sort. My field is declared in cobol as s9(9). i did like the one below
OUTREC FIELDS=(1:C'000000000')
Is there any other way of doing it?
Thanks in Advance,
Chinnielr. |
|
Back to top |
|
|
Frank Yaeger
DFSORT Developer
Joined: 15 Feb 2005 Posts: 7129 Location: San Jose, CA
|
|
|
|
There are several other ways to do it. Here are a couple:
Code: |
OUTREC BUILD=(9C'0')
|
Code: |
OUTREC BUILD=(+0,TO=ZD,LENGTH=9)
|
What is your criteria for "any other way"? What are you trying to achieve? |
|
Back to top |
|
|
|