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
 

 

To Remove spaces special characters from string

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: To Remove spaces special characters from string
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Mon Aug 23, 2010 8:21 pm    Post subject: Reply to: To Remove spaces special characters from string
Reply with quote

The following may help -

http://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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Removing Extra Spaces in a comma sepa... Puspojit DFSORT/ICETOOL 3 Tue Sep 13, 2016 7:46 am
No new posts Random Password (in string format) ge... ezhavendhan COBOL Programming 10 Mon Aug 29, 2016 3:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm


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