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
 
Convert the packed data to COMP-3

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

New User


Joined: 09 Oct 2006
Posts: 36

PostPosted: Tue Nov 06, 2007 12:09 pm    Post subject: Convert the packed data to COMP-3
Reply with quote

Hi All, I need a help from you,
here is the hex data:
Code:
-------
..../i?
0000686
0000195

the value should be 618.950, it is packed data, but not COM-3 (no 'D' or 'C' ended)

how to convert this data to S9(9)V9(3) COMP-3 by using a sort step?

Thanks!
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 Nov 06, 2007 9:30 pm    Post subject:
Reply with quote

Quote:
the value should be 618.950


Wouldn't the value be 618.965 rather than 618.950? If not, where did the 50 come from?

Ok, so the value is X'00000000618965'. You're correct that it's a packed data value without a sign (it's NOT binary and it's NOT PD) - it has 14 digits. DFSORT doesn't have a built-in format for a PD value without a sign.

Quote:
how to convert this data to S9(9)V9(3) COMP-3


That would be a 12 digit PD value. Note that PD values do not actually have the decimal point - it's implied. So the conversion you asked for would be from X'00000000618965' to X'000000618965C'.

To do that conversion, you need to remove the first 2 digits on the left and add a sign at the end. I assume the sign would always be positive (C) - right?

Do I understand correctly what you want?
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 Unable to copy data from spool in a d... srikant314 JCL & VSAM 8 Fri Jul 28, 2017 9:10 pm
No new posts Paasing symbolic parameter to instrea... Robert Sample JCL & VSAM 2 Thu Jul 27, 2017 1:22 pm
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts copying data without knowing location Arun Raj DFSORT/ICETOOL 12 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm


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