View previous topic :: View next topic
|
Author |
Message |
manjinder
New User
Joined: 04 Dec 2005 Posts: 45 Location: pune
|
|
|
|
can anybody tell me the basic to major difference b/w examine and inspect.
thanx in advance.
regard..
manjinder |
|
Back to top |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
|
|
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 |
|
|
khamarutheen
Active Member
Joined: 23 Aug 2005 Posts: 677 Location: NJ
|
|
Back to top |
|
|
sunish_sr
New User
Joined: 02 Jan 2006 Posts: 9 Location: Chennai
|
|
|
|
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 |
|
|
|