Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Zoned and Fixed point format....

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
Rupa.P.V
Warnings : 1

New User


Joined: 04 Jul 2006
Posts: 30

PostPosted: Mon Jul 31, 2006 12:31 pm    Post subject: Zoned and Fixed point format....
Reply with quote

Can anyone explain me wat is zoned decimal and fixed point format??

And how can we convert Zoned decimal to Fixed decimal format using DFSORT ??


Please provide syntax and example for clear understanding..

Thanks in advance
Back to top
View user's profile Send private message

chanda.debasish

New User


Joined: 19 Sep 2005
Posts: 9

PostPosted: Mon Jul 31, 2006 4:29 pm    Post subject:
Reply with quote

Zoned decimal (ZD) is equivalent to PIC S9(n) and fixed point format(FI) is equivalent to PIC S9(n) COMP.
ZD TO FI conversion can be done in the following way -

Code:

  OUTREC FIELDS=(1,4,ZD,TO=FI)
  SORT FIELDS=COPY           


For example if the input file content is
0001
then output file will contain binary equivalent of 0001.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Moderator


Joined: 15 Feb 2005
Posts: 7130
Location: San Jose, CA

PostPosted: Sat Aug 05, 2006 10:10 pm    Post subject:
Reply with quote

For more information on the various DFSORT formats you can use, see "Appendix C" of "z/OS DFSORT Application Programming Guide". You can access all of the DFSORT books from:

http://www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html

For more information on converting numeric formats, see "Reformatting Features" in "DFSORT: Beyond Sorting" at:

http://www.ibm.com/servers/storage/support/software/sort/mvs/beyond_sorting/
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Match or compare two files in VB Format anatol DFSORT/ICETOOL 14 Thu Nov 03, 2016 7:41 pm
No new posts Low values Results from VARCHAR FORMAT balaji81_k DB2 10 Thu Oct 20, 2016 1:18 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm
No new posts Format to pipe delimited with variabl... pshongal SYNCSORT 6 Wed Sep 14, 2016 2:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us