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

To Remove spaces special characters from string


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Suneel_gowda

New User


Joined: 18 Aug 2010
Posts: 1
Location: Bangalore

PostPosted: Mon Aug 23, 2010 7:30 pm
Reply with quote

Hi All,

I have code a program which reads from a Db2 table and writes in to a flat file.

The table will have FIRST_NAME (40), MIDDLE_NAME(40) and LAST_NAME(40) and some other fields

The requirement as below,
1. Have to concatenate all the names.
2. Have to remove the set of special characters like %,$,@,* etc.
3. Have to remove the spaces between the first, middle and last name.
4. Have to remove the string present within double quotes r within braces.
Ex:-
Data in table
FIRST_NAME:- Sunil$&(2345)
MIDDLE_NAME :- Manju-nath"hyr&*" 2345
LAST_NAME:- Kumar"sfgh(fdsf)jhfjh" M

Out data : Sunil Manjunath 2345 Kumar M

Regards,
Sunil
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Mon Aug 23, 2010 8:21 pm
Reply with quote

The following may help -

ibmmainframes.com/viewtopic.php?p=143786&highlight=#143786

Bill
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 -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 2
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Remove leading zeroes SYNCSORT 4
Search our Forums:

Back to Top