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
 

 

Interview questions

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
indus

New User


Joined: 10 Dec 2008
Posts: 12
Location: Bangalore

PostPosted: Thu Dec 10, 2009 9:23 pm    Post subject: Interview questions
Reply with quote

I faced the following questions in a recent interview.

1.If we use renames for regrouping, whether both the renamed one as well as the original group items will have the same storage area?
My answer was "No".

2.Can we rename 77 level elementery items.
My answer was 'No'. My understanding is only group level variables can be renamed.

3.Suppose we have a program A and the program is calling a subprogram B. If there is a mismatch in the number of actual parameters and formal parameters, what will happen?

My answer was the call will fail. Because if the formal parameters and actual parameters are matching then only the program will run properly.

4. Suppose there is a proc with DSN = File 1,File2, File3, File4, File5. And suppose he tries to override the same using file5, file6 and file7. from job. Which files will be taken by the program during run time.

Ans: File5,File6, File7 was my answer.

5.Can we overide the PGM=PGM1 in a proc with some other program.

Ans:We can use symbolic parameters for such overriding.

6. What is multiple entry points and multiple exit points in a cobol program.

Ans: I did not know the answer.

7. Can we use more than one linkage section in a cobol program.

Ans: No

Can anyone help me in finding the correct answers for these questions.

Thanks in advance,
Indu Rose
Back to top
View user's profile Send private message

Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8057
Location: East Dubuque, Illinois, USA

PostPosted: Thu Dec 10, 2009 11:17 pm    Post subject:
Reply with quote

There is a manuals link at the top of the page. Click it, find the COBOL Language Reference manual, go to section 5.3.14 on RENAMES and you will find:

1. The renamed area and the original area share the same storage.
2. 01, 77, 66, 88 levels cannot be renamed -- everything else, including elementary items, can be renamed.
3. The answer depends upon where the mismatch is. If program A calls program B using 6 parameters and program B only references 3 of them in the PROCEDURE DIVISION USING and LINKAGE SECTION, there is no error, no abend, and the programs can run to normal completion. If program A calls program B using 3 parameters and program B references 6 parameters in the PROCEDURE DIVISION USING and LINKAGE SECTION, the first reference to any of the last 3 values will cause S0C4 (most likely).
4. Question makes no sense -- are these concatenated files?
5. As worded, symbolic parameters aren't mentioned -- where did you add them from?
6. Check out the ENTRY statement in the COBOL Language Reference manual cited above.
7. The answer is in the COBOL Language Reference manual.
Back to top
View user's profile Send private message
indus

New User


Joined: 10 Dec 2008
Posts: 12
Location: Bangalore

PostPosted: Fri Dec 11, 2009 1:34 pm    Post subject: Reply to: Interview questions
Reply with quote

For question number 4, I think the interviewer was refering to concatenation of datasets.

Thanks,
indu Rose
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri Dec 11, 2009 1:54 pm    Post subject: Reply to: Interview questions
Reply with quote

it would be nice if people would use a couple of their neurons to invent a meaningful title for their questions

the practice of using for questions titles the name of the forum on which they are posed
could be obiect for a higher education course in the School of Comparative Irrelevance,
Back to top
View user's profile Send private message
indus

New User


Joined: 10 Dec 2008
Posts: 12
Location: Bangalore

PostPosted: Fri Dec 11, 2009 2:06 pm    Post subject:
Reply with quote

Sorry for title. Will definitely use a meaningful title from next post onwards.
As my questions were pointing to different topics, I thought it was appropriate. Anyway from next time onwards will try to find out a much meaningful title.

Thanks,
Indus
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts The Last Two Question For You To Ask ... CaptBill Mainframe Interview Questions 0 Fri Apr 14, 2017 5:42 am
No new posts Mainframe Interview Questions CICS,CO... akshathan Mainframe Interview Questions 6 Thu Feb 09, 2017 6:38 pm
No new posts Viewing executing process in NDM .. q... Debb.Brant IBM Tools 0 Wed Dec 14, 2016 10:55 pm
No new posts INCLUDE condition questions van bui DFSORT/ICETOOL 1 Thu Jun 30, 2016 9:52 am
No new posts SAS Programming - Basic Questions Techelm All Other Mainframe Topics 3 Fri Mar 18, 2016 10:53 pm


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