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
 
Char to Numeric - conversion

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
picus_mf
Warnings : 1

New User


Joined: 09 Jun 2006
Posts: 52

PostPosted: Thu Mar 08, 2012 4:52 pm    Post subject: Char to Numeric - conversion
Reply with quote

Hi,
I am trying to use the character data as numeric from the file I receive.
Code:

TOTAL LOSS IN -                           139,454.00-


The value always comes at column 41. My shop has SYNCSORT.
I could manage few things like converting from csv to regular flat file and removal of low-values to spaces. As this is a new requirement and there is no other business logic involved I am trying this in sort. Can you guide me to resolve this?

regards
Back to top
View user's profile Send private message

Bill Woodger

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7314

PostPosted: Thu Mar 08, 2012 5:21 pm    Post subject: Reply to: Char to Numeric - conversion
Reply with quote

Since you have Syncsort, this should be in the JCL forum, not the DFSORT forum.

You have a Signed Free Format number. Look in your Syncsort manual for how to make that into the format you require. You can also do a search in the JCL forum for SFF to get some examples.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Fri Mar 09, 2012 6:20 pm    Post subject: Re: Char to Numeric - conversion
Reply with quote

picus_mf wrote:
I am trying to use the character data as numeric from the file I receive.
Once the data is treated as "numeric", what is next? Are you done with it, at the moment?
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 Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Conversion of DLI update Jobs as BMP ... Gopinath Shanmugam IMS DB/DC 3 Wed Dec 20, 2017 12:02 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Conversion of UTF-8 to EBCDIC muralikrishnan_new COBOL Programming 1 Tue Nov 21, 2017 5:33 pm
No new posts Mainframe Blocks to Tracks conversion upendrasri JCL & VSAM 1 Sat Nov 18, 2017 10:52 am

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