IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

converting a packed field to numeric


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Rehana

New User


Joined: 12 Feb 2007
Posts: 13
Location: chennai

PostPosted: Fri Jul 27, 2007 2:44 pm
Reply with quote

Apologies didn't search the manual completely. Can anyone let me know if there is a way to convert packed decimal value to numeric value in SORT
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Fri Jul 27, 2007 2:50 pm
Reply with quote

Here is a little help with the DFSORT manual:
Converting Numeric Fields to Different Formats
Back to top
View user's profile Send private message
dharmadam_man

New User


Joined: 20 Apr 2005
Posts: 8

PostPosted: Tue Aug 07, 2007 5:00 am
Reply with quote

I want to convert PIC S9(15) COMP-3 to 9(15) COMP without sign. When I give the format as OUTREC FIELDS=(3,8,PD,TO=ZD,LENGTH=15, I am getting sign over punch on the last byte.
For example, I am seeing 00000015499319E insttead of 000000154993195. How can I get 000000154993195 in the output.
Back to top
View user's profile Send private message
Frank Yaeger

DFSORT Developer


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

PostPosted: Tue Aug 07, 2007 5:25 am
Reply with quote

Actually, with DFSORT you would automatically get 000000154993195. You must be using Syncsort if you're getting E instead of 5. So I'm moving this post from the DFSORT Forum to the JCL Forum.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts Need Help with Packed Decimal Signs DFSORT/ICETOOL 4
Search our Forums:

Back to Top