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
 
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
This topic is locked: you cannot edit posts or make replies. GDG gen check using REXX raghuraman123 CLIST & REXX 6 Wed Apr 18, 2018 9:18 pm
No new posts How syntax check at Bind time is diff... Poha Eater DB2 5 Wed Mar 21, 2018 9:16 pm
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am

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