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

Doubt in convertion of packed decimal to numeri


IBM Mainframe Forums -> DFSORT/ICETOOL
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
creativity

New User


Joined: 10 Feb 2006
Posts: 3
Location: India

PostPosted: Thu Apr 19, 2007 2:16 pm
Reply with quote

Hi,

Can any one please explain me what the following command do with ICEMAN utility?

Code:

  OPTION COPY             
  INREC FIELDS=(9,7,PD,M26)
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Thu Apr 19, 2007 4:15 pm
Reply with quote

It is one of the twenty-seven pre-defined edit masks can be found in Table 43. Edit Mask Patterns
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: Thu Apr 19, 2007 8:31 pm
Reply with quote

9,7,PD,M26

It converts the 7-byte PD input value starting in position 9 to an output value of 'sdd...d' starting in position 1, where s is + for a positive value or - for a negative value and d is 0-9. So P'1234567890123' would be converted to '+1234567890123' and P'-1' would be converted to '-0000000000001'.

If you're not familiar with DFSORT and DFSORT's ICETOOL, I'd suggest reading through "z/OS DFSORT: Getting Started". It's an excellent tutorial, with lots of examples, that will show you how to use DFSORT, DFSORT's ICETOOL and DFSORT Symbols. You can access it online, along with all of the other DFSORT books, from:

Use [URL] BBCode for External Links
Back to top
View user's profile Send private message
creativity

New User


Joined: 10 Feb 2006
Posts: 3
Location: India

PostPosted: Mon May 14, 2007 11:10 am
Reply with quote

Thanks friends...

Sorry for the late reply...
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 Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
No new posts Select a DB2 value in a specific deci... DB2 4
Search our Forums:

Back to Top