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
 

 

Doubt in convertion of packed decimal to numeri

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
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    Post subject: Doubt in convertion of packed decimal to numeri
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: 3158
Location: Tucson AZ

PostPosted: Thu Apr 19, 2007 4:15 pm    Post subject:
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 Moderator


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

PostPosted: Thu Apr 19, 2007 8:31 pm    Post subject:
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:

www.ibm.com/servers/storage/support/software/sort/mvs/srtmpub.html
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    Post subject: Re: Doubt in convertion of packed decimal to numeri
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    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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Joinkeys with decimal scdinesh DFSORT/ICETOOL 3 Fri Feb 10, 2017 4:46 am
No new posts Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts Doubt in MFS abdulrafi IMS DB/DC 2 Fri Oct 21, 2016 3:09 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am


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