View previous topic :: View next topic
|
Author |
Message |
pullaiah.cts
New User
Joined: 02 Sep 2010 Posts: 50 Location: Pune
|
|
|
|
Hi,
Can anyone please tell me which string verb contains inbuilt tally register in COBOL?
options are as below
A.INSPECT
B.EXAMINE
C.STRING
D.UNSTRING |
|
Back to top |
|
|
Binop B
Active User
Joined: 18 Jun 2009 Posts: 407 Location: Nashville, TN
|
|
|
|
Hi pullaiah,
Looks like an Interview Question...
The usual process that we follow is - you give us what answer you gave and why you think so... and we will guide you from there... |
|
Back to top |
|
|
pullaiah.cts
New User
Joined: 02 Sep 2010 Posts: 50 Location: Pune
|
|
|
|
Hi Binop,
Actually it is not a interview question,I got this question in my internal certification. I have selected the option as INSPECT as we used to mention TALLY verb while writing INSPECT statement.
Please correct me if my anser is wrong. |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
If you click on the manuals link at the top of the page, find the COBOL Language Reference manual, open it, click on the search function (the flashlight icon), and enter tally as the search phrase, you will find that both INSPECT and UNSTRING use the TALLY special register. Furthermore, TALLY can be manipulated as if it were a variable, as well.
If you are not allowed to select multiple responses, the question is wrong in implying only one of the verbs uses TALLY. And I would suggest the question is wrong anyway and should not be used due to the way it is worded. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
the fact that EXAMINE is still considered a COBOL statement also shows the age of this question. |
|
Back to top |
|
|
pullaiah.cts
New User
Joined: 02 Sep 2010 Posts: 50 Location: Pune
|
|
|
|
Hi Robert,
Thanks for the information. |
|
Back to top |
|
|
Bill O'Boyle
CICS Moderator
Joined: 14 Jan 2008 Posts: 2501 Location: Atlanta, Georgia, USA
|
|
|
|
Wow! EXAMINE was introduced with ANSI-COBOL 68. This is older than dirt and should not be relevant any more....
Bill |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Well, EXANINE . . . TALLYING. . . was a biggie in those days.
Hopefully, this is not the answer that was "right". . . Scary.
d |
|
Back to top |
|
|
|