Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Convert invalid PD data to valid one

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

New User


Joined: 06 Sep 2005
Posts: 28
Location: Minneapolis US

PostPosted: Sat Dec 09, 2006 8:34 pm    Post subject: Convert invalid PD data to valid one
Reply with quote

Hi Friends;
I am facing a small problem, please have a look and help me for the same.

I have an input dataset of 6 bytes, with a field typer packed decimal 6 bytes, cobol copybook data type PIC S9(11) COMP-3

In my input dataset, it has value as X'000000000064', I want to convert the value to edit clause so that I can view 100 instead of hexadecimal value. Also, I dont want the record length to be changed after formatting.

I tried many ways to convert it but couldn't suceeded.
Please suggest.
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 Dec 09, 2006 9:50 pm    Post subject:
Reply with quote

X'000000000064' is NOT a PD value and not PIC S9(11) COMP-3. It's actually a 6-byte BI value of 100. So you can convert it using:

p,6,BI,M10,LENGTH=6

or whatever edit mask you like.

Note that a 6-byte BI value can result in more than 6 digits, but I used LENGTH=6 since you said you don't want to change the length. So this could result in truncation. LENGTH=15 would prevent truncation.
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 Copy 4 byte of data from the last rec... arunsoods DFSORT/ICETOOL 9 Fri Oct 06, 2017 12:15 pm
No new posts opening a dataset after reading it fr... arunsoods DFSORT/ICETOOL 5 Wed Oct 04, 2017 3:54 pm
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts File Aid tool to compare numeric data balaji81_k Compuware & Other Tools 2 Tue Sep 26, 2017 3:35 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us