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

I need to Remove the special Charaters from my field.


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 2481
Location: @my desk

PostPosted: Fri Aug 08, 2008 1:05 am
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: 2501
Location: Atlanta, Georgia, USA

PostPosted: Fri Aug 08, 2008 1:07 am
Reply with quote

Click on this recent posting below -

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: 2146
Location: At my coffee table

PostPosted: Fri Aug 08, 2008 1:11 am
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts Remove leading zeroes SYNCSORT 4
No new posts Join 2 files according to one key field. JCL & VSAM 3
No new posts How to move the first field of each r... DFSORT/ICETOOL 5
Search our Forums:

Back to Top