View previous topic :: View next topic |
Author |
Message |
gharidoss Beginner
Joined: 14 Mar 2005 Posts: 38 Topics: 15 Location: Bangalore
|
Posted: Wed Mar 22, 2006 12:39 am Post subject: Convert Decimal into Binary |
|
|
Hi,
I need to convert the Decimal value into Binary for specfic fields. But I got S0C7. Please let me know my mistakes on this?
I tried two ways.
Code: |
SORT FIELDS=COPY
OUTREC FIELDS=(1,3,PD,TO=BI,LENGTH=4)
|
Code: |
SORT FIELDS=COPY
OUTREC FIELDS=(1,3,PD,TO=BI)
|
Thanks in advance
Hari |
|
Back to top |
|
 |
Phantom Data Mgmt Moderator

Joined: 07 Jan 2003 Posts: 1056 Topics: 91 Location: The Blue Planet
|
Posted: Wed Mar 22, 2006 1:29 am Post subject: |
|
|
gharidoss,
PD - refers to Packed Decimal (Comp-3 Variable). What do you mean when you say Decimal value ? Normal Decimal S9(n)v99 without COMP-3 or WITH COMP-3?
Try this if you are using normal decimal without COMP-3 (ZD stands for Zoned Decimal)
Code: |
SORT FIELDS=COPY
OUTREC FIELDS=(1,3,ZD,TO=BI)
|
Thanks,
Phantom |
|
Back to top |
|
 |
gharidoss Beginner
Joined: 14 Mar 2005 Posts: 38 Topics: 15 Location: Bangalore
|
Posted: Wed Mar 22, 2006 2:44 am Post subject: |
|
|
Hi Phantom,
Thanks for the reply...
My requirement is Zoned Decimal. it's working fine.
Thanks,
Hari _________________ http://mainframe-world.com |
|
Back to top |
|
 |
Frank Yaeger Sort Forum Moderator

Joined: 02 Dec 2002 Posts: 1618 Topics: 31 Location: San Jose
|
Posted: Wed Mar 22, 2006 11:06 am Post subject: |
|
|
See Appendix C of "z/OS DFSORT Application Programming Guide" for info on the various DFSORT formats and how they relate to COBOL formats.
You access "z/OS DFSORT Application Programming Guide" online from:
www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html _________________ Frank Yaeger - DFSORT Development Team (IBM)
Specialties: JOINKEYS, FINDREP, WHEN=GROUP, ICETOOL, Symbols, Migration
DFSORT is on the Web at:
www.ibm.com/storage/dfsort |
|
Back to top |
|
 |
gharidoss Beginner
Joined: 14 Mar 2005 Posts: 38 Topics: 15 Location: Bangalore
|
Posted: Thu Mar 23, 2006 3:15 am Post subject: |
|
|
Hi Frank,
Thanks for your help...
Thanks,
Hari _________________ http://mainframe-world.com |
|
Back to top |
|
 |
|
|