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
 

 

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: 51

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: 7306

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 Converting decimal to numeric using I... Balaryan DFSORT/ICETOOL 4 Thu Feb 02, 2017 11:27 pm
No new posts File Aid to File Manager conversion murali3955 IBM Tools 4 Thu Nov 24, 2016 3:41 pm
No new posts Conversion of a VB file to FB. isssal DFSORT/ICETOOL 1 Mon Oct 31, 2016 10:23 pm
No new posts Comparing Decimal and CHAR columns rakesh17684 DB2 7 Thu Oct 20, 2016 2:33 am
No new posts Sort records based on numeric field. Alks SYNCSORT 2 Wed Oct 19, 2016 10:14 pm


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