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
 
converting a packed field to numeric

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: converting a packed field to numeric
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: 3158
Location: Tucson AZ

PostPosted: Fri Jul 27, 2007 2:50 pm    Post subject:
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    Post subject:
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 Moderator


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

PostPosted: Tue Aug 07, 2007 5:25 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am
No new posts Validate if a Value from the file is ... balacsv2 COBOL Programming 8 Mon Jun 19, 2017 11:52 pm

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