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
 
Output from Sort (VB to FB) giving hexadecimal values

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

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Mon Nov 26, 2007 4:00 pm    Post subject: Output from Sort (VB to FB) giving hexadecimal values
Reply with quote

Hi all,
I have a sort card like the below way. input file is a VB flat file, output is a vsam file (FB).
Code:

SORT FIELDS=(54,10,ZD,A,39,2,CH,A,50,2,CH,A)
OUTFIL FILES=01,VTOF,                                           
         IFTHEN=(WHEN=(50,2,CH,EQ,C'31'),                       
          BUILD=(1:54,10,                                       
                11:39,2,                                       
                13:50,2)),                                       
         IFTHEN=(WHEN=(50,2,CH,EQ,C'34'),                       
          BUILD=(1:54,10,                                       
                11:39,2,                                       
                13:50,2))


when i run this in a job, in the output i am only able to see the data which is in character format. the other data which is in numeric/Packed decimal, it is showing as hexadecimal values.

Can anyone let me know how to remove this hexadecimal format for the numberic items.
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Mon Nov 26, 2007 9:06 pm    Post subject:
Reply with quote

Hello,

Quote:
an anyone let me know how to remove this hexadecimal format for the numberic items.
Why do you want to remove the packed/hex values? I suspect they were created in this format for some reason.

If the file definition for the vsam file includes comp-3 or comp fields, you will need to keep the current definitions.

Why is this a problem for you? If your only concern is "seeing" the values, you can look at the input file with "HEX ON".
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: Mon Nov 26, 2007 10:25 pm    Post subject:
Reply with quote

Ram,

It's not clear what you want to do exactly.

If you want to convert numeric values like PD or BI to displayable form, you can use DFSORT's edit masks. See the following for more information:

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ICE1CG20/2.4.8?DT=20060615173822
Back to top
View user's profile Send private message
rammraju

New User


Joined: 05 Mar 2005
Posts: 65
Location: Hyderabad

PostPosted: Tue Dec 04, 2007 8:24 pm    Post subject: Reply to: Output from Sort (VB to FB) giving hexadecimal val
Reply with quote

Hi Frank,
I wanted to convert the PD data to a displayable form, it seems my problem can be solved by using edit masks.

Thanks for the 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 Subtract the ZD fields to provide neg... Balaryan DFSORT/ICETOOL 4 Wed Oct 11, 2017 10:51 pm
No new posts Extend the decimal values in DIVISION Balaryan DFSORT/ICETOOL 3 Thu Oct 05, 2017 4:05 pm
No new posts sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts JOINKEYS Paired and Unpaired Sort MFwhiz DFSORT/ICETOOL 4 Fri Sep 29, 2017 1:48 am
No new posts Where is output from PARM ABEXIT (SNA... packerm CA Products 3 Thu Sep 28, 2017 4:06 pm

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