Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 8165
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: 6968
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: 2504
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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 5 Sat Oct 14, 2017 2:29 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts Search for a string in many PDS KARTHIGADEVI CLIST & REXX 5 Fri Sep 08, 2017 2:32 pm
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us