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
 

 

I need to Remove the special Charaters from my field.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
rakeshnaredlla

New User


Joined: 04 Aug 2008
Posts: 26
Location: Hyderabad

PostPosted: Fri Aug 08, 2008 12:53 am    Post subject: I need to Remove the special Charaters from my field.
Reply with quote

Hi,

I have a Name field in which the valid values are alphabets, numerics, hyphen and ampersand. From any of these if I have some thing else I need to move spaces into the field at that point. Please find the examples below.This name field is declared as alpha numeric.
icon_question.gif
Eg 1:

If my Input is like this
Name = rakesh*naredlla then
my output should be
Name = rakesh naredlla

Eg 2:
Input
Name = rakesh/naredlla
Output
Name = rakesh naredlla

Please help me out in this

icon_question.gif
Back to top
View user's profile Send private message

Arun Raj

Moderator


Joined: 17 Oct 2006
Posts: 2284
Location: @my desk

PostPosted: Fri Aug 08, 2008 1:05 am    Post subject:
Reply with quote

Rakesh,

A similar topic was discussed some few days back. Do a search.

Thanks,
Arun
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: Fri Aug 08, 2008 1:07 am    Post subject: Re: I need to Remove the special Charaters from my field.
Reply with quote

Click on this recent posting below -

http://ibmmainframes.com/viewtopic.php?t=32610

Bill
Back to top
View user's profile Send private message
CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Fri Aug 08, 2008 1:11 am    Post subject:
Reply with quote

Use the CLASS clause and an inline PERFORM with reference modification against the field....
Check out the earlier Checking for Alphanumeric data post.
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 READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm
No new posts Alter &DATENS field in HEADER1 Angad DFSORT/ICETOOL 4 Mon Apr 24, 2017 11:49 am
No new posts Format record to remove Leading zeroes Learncoholic DFSORT/ICETOOL 14 Wed Apr 05, 2017 2:43 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm


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