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

which string verb contains inbuilt tally register in cobol?


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pullaiah.cts

New User


Joined: 02 Sep 2010
Posts: 50
Location: Pune

PostPosted: Tue Sep 07, 2010 5:59 pm
Reply with quote

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
View user's profile Send private message
Binop B

Active User


Joined: 18 Jun 2009
Posts: 407
Location: Nashville, TN

PostPosted: Tue Sep 07, 2010 6:04 pm
Reply with quote

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... icon_smile.gif
Back to top
View user's profile Send private message
pullaiah.cts

New User


Joined: 02 Sep 2010
Posts: 50
Location: Pune

PostPosted: Tue Sep 07, 2010 6:10 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Tue Sep 07, 2010 7:29 pm
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue Sep 07, 2010 7:37 pm
Reply with quote

the fact that EXAMINE is still considered a COBOL statement also shows the age of this question.
Back to top
View user's profile Send private message
pullaiah.cts

New User


Joined: 02 Sep 2010
Posts: 50
Location: Pune

PostPosted: Tue Sep 07, 2010 7:40 pm
Reply with quote

Hi Robert,

Thanks for the information.
Back to top
View user's profile Send private message
Bill O'Boyle

CICS Moderator


Joined: 14 Jan 2008
Posts: 2501
Location: Atlanta, Georgia, USA

PostPosted: Tue Sep 07, 2010 9:22 pm
Reply with quote

Wow! EXAMINE was introduced with ANSI-COBOL 68. This is older than dirt and should not be relevant any more....

Bill
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Tue Sep 07, 2010 9:25 pm
Reply with quote

Well, EXANINE . . . TALLYING. . . was a biggie in those days.

Hopefully, this is not the answer that was "right". . . Scary.

d
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 Replace each space in cobol string wi... COBOL Programming 2
No new posts PARSE Syntax for not fix length word ... JCL & VSAM 7
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts Sortjoin and Search for a String and ... DFSORT/ICETOOL 1
Search our Forums:

Back to Top