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
 

 

DFSORT converting numeric values TO=PD

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
pso0004

New User


Joined: 30 May 2006
Posts: 1
Location: Lisbon

PostPosted: Tue May 30, 2006 4:22 pm    Post subject: DFSORT converting numeric values TO=PD
Reply with quote

Hi.

Can anyone help me. I'm generating a file B from a file A. In the file A i have a zoned decimal field with SIIIIIIIIIIT,TT that I want to convert to file B as an packed decimal. I'm using the following :

1,14,zd,to=pd

but the result does not convert the signal or decimal sign. I have tryed a mask but with no effect.
Back to top
View user's profile Send private message

sril.krishy

Active User


Joined: 30 Jul 2005
Posts: 183
Location: hyderabad

PostPosted: Tue May 30, 2006 5:52 pm    Post subject:
Reply with quote

Hi,
Please put the details of the i/p file and the expected o/p.It will help us to post the complete JCL for you.

Thanks
Krishy
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: Tue May 30, 2006 8:55 pm    Post subject:
Reply with quote

SIIIIIIIIIIT,TT is NOT a ZD value because of the sign and decimal point. It's also 15 bytes, not 14 bytes. You need to use DFSORT's SFF format to handle this:

1,15,SFF,TO=PD

the result will be an 8-byte PD field.

For some more information on DFSORT's SFF format, see:

http://www.ibm.com/servers/storage/support/software/sort/mvs/beyond_sorting/online/srtmbfff.html
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 Sorting of hex values Saurabh_mi DFSORT/ICETOOL 4 Thu May 25, 2017 3:49 pm
No new posts Converting Variable block file to Fix... bhavana yalavarthi DFSORT/ICETOOL 10 Tue May 16, 2017 2:20 pm
No new posts Validate date and numeric fields and ... Rick Silvers DFSORT/ICETOOL 6 Thu May 11, 2017 6:51 pm
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts DFSORT - Overriding default option TU... Steve Ironmonger DFSORT/ICETOOL 3 Tue Apr 04, 2017 3:54 pm


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