Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 2285
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: 2504
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 sort records based on length exceeds ... maxsubrat DFSORT/ICETOOL 7 Wed Oct 04, 2017 4:48 pm
No new posts Partial color change of a field in CI... waseem0424 CICS 5 Fri Sep 29, 2017 7:56 pm
No new posts Remove leading spaces from numeric field rexx77 SYNCSORT 6 Wed Sep 06, 2017 2:15 am
No new posts JES2 job size field matching Windows ... SRICOBSAS All Other Mainframe Topics 4 Tue Sep 05, 2017 5:49 pm
No new posts READ A PACKED "NEGATIVE" FI... jdesouza CA Products 3 Tue May 02, 2017 11:43 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us