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
 

 

INSPECT verb to check whether it contains '*' or ';'

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

New User


Joined: 10 Mar 2005
Posts: 3
Location: Chennai

PostPosted: Thu Jan 12, 2006 2:59 pm    Post subject: INSPECT verb to check whether it contains '*' or ';'
Reply with quote

Hi all,
i got a request. in that i need to check whether it contains '*' or ';'. if so, replace them with spaces. i used INSPECT.

INSPECT VAR replacing all '*' by ' '
INSPECT VAR replacing all ';' by ' '

can any body tell me is it correct or wrong.
Back to top
View user's profile Send private message

priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1452
Location: Chicago, IL

PostPosted: Thu Jan 12, 2006 3:40 pm    Post subject: Re: Regarding INSPECT
Reply with quote

Quote:
can any body tell me is it correct or wrong.

That is correct and will give you desired results.

Regards,

Priyesh.
Back to top
View user's profile Send private message
mmwife

Super Moderator


Joined: 30 May 2003
Posts: 1592

PostPosted: Fri Jan 13, 2006 6:47 am    Post subject:
Reply with quote

It's probably more efficient to do it this way:

INSPECT VAR replacing all '*' by ' ' all ';' by ' '
Back to top
View user's profile Send private message
sdharitas

New User


Joined: 10 Mar 2005
Posts: 3
Location: Chennai

PostPosted: Tue Jan 17, 2006 3:07 pm    Post subject: Thanks
Reply with quote

Hi friends,
thanks for ur suggestions. i implemented and thats working fine.

Regards
Satya
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 Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
No new posts Inspect statement spoorni COBOL Programming 5 Mon Jun 06, 2016 9:53 pm
No new posts Syntax to check the first 4 digits of... kshirabdhi DFSORT/ICETOOL 10 Tue May 03, 2016 12:21 pm


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