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 and examine

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

New User


Joined: 04 Dec 2005
Posts: 45
Location: pune

PostPosted: Tue Jan 17, 2006 3:28 pm    Post subject: inspect and examine
Reply with quote

can anybody tell me the basic to major difference b/w examine and inspect.

thanx in advance.
regard..
manjinder
Back to top
View user's profile Send private message

khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Tue Jan 17, 2006 3:51 pm    Post subject: Cobol question
Reply with quote

The INSPECT statement to do the following tasks:

1) Fill selected portions of a data item with a value. If you specify a national data item, you must also specify a national value.
2) Replace portions of a data item with a corresponding portion of another data item. If you specify any national items or literals in the statement, you must specify all items as national.
3) Count the number of times a specific character (zero, space, or asterisk, for example) occurs in a data item. For a national data item, the count is in national characters.
and also To replace characters or groups of characters in a data item.

The EXAMINE statement is used by Inspect statement which will examine and replace as our need.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 680
Location: NJ

PostPosted: Tue Jan 17, 2006 3:58 pm    Post subject: Cobol question
Reply with quote

Since Examine is a old verb which is now replaced with INSPECT verb. So to know more about that view the below links. Hope helpful


http://docs.hp.com/cgi-bin/doc3k/B3150090013.11820/84

http://publib.boulder.ibm.com/infocenter/pdthelp/v1r1/index.jsp?topic=/com.ibm.debugtooluaf5.doc/vrmu1mst137.htm
Back to top
View user's profile Send private message
sunish_sr

New User


Joined: 02 Jan 2006
Posts: 9
Location: Chennai

PostPosted: Tue Jan 17, 2006 6:59 pm    Post subject: Cobol question
Reply with quote

HI,

EXAMINE statements were used in DOS/VS Cobol. This is replaced with INSPECT in the new versions of cobol, retaining the functionality.

Regards,
Sunish S
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 Inspect statement spoorni COBOL Programming 5 Mon Jun 06, 2016 9:53 pm
No new posts Using Inspect in cobol Ajay Dwivedi COBOL Programming 8 Sat Sep 26, 2015 11:33 pm
No new posts EQUIVALENT OF COBOL INSPECT IN REXX pshongal CLIST & REXX 2 Fri Nov 22, 2013 10:44 am
No new posts Find the occurrence of keywords using... suraaj COBOL Programming 15 Fri Aug 30, 2013 8:27 pm
No new posts Inspect using replace dharmaraok COBOL Programming 9 Fri Aug 16, 2013 10:28 pm


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