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
 

 

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 Sorting of hex values Saurabh_mi DFSORT/ICETOOL 11 Thu May 25, 2017 3:49 pm
No new posts How to change 'K' or 'M' use Sort vice_versa DFSORT/ICETOOL 5 Thu May 18, 2017 7:11 am
No new posts Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts find RACF group for access to spooled... jzhardy JCL & VSAM 1 Mon May 08, 2017 11:46 am
No new posts Adding big TEXT lines to each record ... bshkris SYNCSORT 4 Sat May 06, 2017 1:40 am


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