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 Replacing same string with different ... vickey_dw DFSORT/ICETOOL 6 Wed Feb 22, 2017 10:44 pm
No new posts Count Trailing Spaces in variable str... Virendra Shambharkar SYNCSORT 10 Thu Feb 02, 2017 12:23 pm
No new posts Remove junk values in a file and rite... KP1125 DFSORT/ICETOOL 2 Wed Jan 25, 2017 9:58 pm
No new posts Sort Card to Remove Duplicate records... raj4neo SYNCSORT 2 Wed Jan 25, 2017 4:44 am
No new posts To trim spaces in a pipe delimited da... Nish84 COBOL Programming 16 Mon Oct 10, 2016 1:54 pm


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