IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Zoned and Fixed point format....


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
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
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
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 Developer


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

PostPosted: Sat Aug 05, 2006 10:10 pm
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:

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:

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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DFSORT/ICETOOL

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Populate last day of the Month in MMD... SYNCSORT 2
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Point and Shoot )PTNS TSO/ISPF 0
Search our Forums:

Back to Top