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

inspect and examine


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 677
Location: NJ

PostPosted: Tue Jan 17, 2006 3:51 pm
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: 677
Location: NJ

PostPosted: Tue Jan 17, 2006 3:58 pm
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


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

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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Inspect in Assemebler PL/I & Assembler 10
No new posts Help needed with INSPECT COBOL Programming 3
No new posts Inspect statement COBOL Programming 5
No new posts Using Inspect in cobol COBOL Programming 8
No new posts EQUIVALENT OF COBOL INSPECT IN REXX CLIST & REXX 2
Search our Forums:

Back to Top