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
 

 

which string verb contains inbuilt tally register in cobol?

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: which string verb contains inbuilt tally register in cobol?
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    Post subject:
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    Post subject: Which string verb contains inbuilt tally register in cobol?
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: 8055
Location: East Dubuque, Illinois, USA

PostPosted: Tue Sep 07, 2010 7:29 pm    Post subject:
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: 6967
Location: porcelain throne

PostPosted: Tue Sep 07, 2010 7:37 pm    Post subject:
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    Post subject: which string verb contains inbuilt tally register in cobol?
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: 2502
Location: Atlanta, Georgia, USA

PostPosted: Tue Sep 07, 2010 9:22 pm    Post subject: Reply to: which string verb contains inbuilt tally register
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

Site Director


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

PostPosted: Tue Sep 07, 2010 9:25 pm    Post subject: Reply to: which string verb contains inbuilt tally register
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    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 Fileaid Update Replace with null string descann Compuware & Other Tools 4 Mon May 15, 2017 3:00 pm
This topic is locked: you cannot edit posts or make replies. Cobol GUI (like Editor) Kala Mainframe COBOL Programming 14 Wed May 10, 2017 12:30 pm
No new posts IMS T-Pipe queue counts in a COBOL Pr... Siva NKK Kothamasu IMS DB/DC 0 Tue May 09, 2017 6:31 pm
No new posts COBOL Code Parsers and Lineage Establ... balimanja COBOL Programming 2 Tue May 02, 2017 3:30 am
No new posts Cobol upgrade - source code missing f... gthmrj IBM Tools 1 Wed Apr 26, 2017 6:04 pm


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