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
 
Replace Non-Numeric to Zeros

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DFSORT/ICETOOL
View previous topic :: :: View next topic  
Author Message
AJAYREDDY

New User


Joined: 17 Feb 2007
Posts: 52
Location: USA

PostPosted: Tue Jan 25, 2011 11:43 pm    Post subject: Replace Non-Numeric to Zeros
Reply with quote

I have a file with 404 FB length. At position 223 length 5 there are some non-numeric values. example spaces, G, T, A etc etc. I want to replace them with Zeros if they have any. Can we do this with IFTHEN and OVERLAY statements. How do we declare non-numeric value in IFTHEN clause?

Example: If input at position 223 has below values

Code:

12345
50G00
19673
70L00
00355
90G00
00 00
00L00


The output should be

Code:

12345
50000
19673
70000
00355
90000
00000
00000


Please note: The non-numeric can be anything Alphabetic/spaces.
Back to top
View user's profile Send private message

Skolusu

Senior Member


Joined: 07 Dec 2007
Posts: 2205
Location: San Jose

PostPosted: Tue Jan 25, 2011 11:50 pm    Post subject:
Reply with quote

Ajayreddy,

Check this

http://www.ibmmainframes.com/viewtopic.php?t=52127&highlight=findrep
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 Sort numeric fields with trailing spaces sancraig16 SYNCSORT 7 Tue Apr 03, 2018 1:21 am
No new posts Find & Replace string in CA-SORT mrgnndhmk CA Products 1 Fri Mar 30, 2018 12:58 am
No new posts Replace last name by first name anatol DFSORT/ICETOOL 10 Thu Mar 15, 2018 3:43 pm
No new posts help to replace columns by rows Vikas Maharnawar DFSORT/ICETOOL 8 Tue Mar 06, 2018 3:27 pm
No new posts How to replace the below query? pkmurali DB2 12 Tue Feb 27, 2018 9:51 pm

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