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
 

 

Some Interview questions

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

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Wed Sep 08, 2010 10:17 pm    Post subject: Some Interview questions
Reply with quote

Hi,

Here are some interview questions that were asked to me;

1. If we have two arrays in COBOl program having INDEXED BY clause, (suppose array1 with INDEX I and array2 with INDEX J), is it possible to access the elements of array1 by using INDEX number J? I.e. can the index of one array be used with another array indexed by some other index variable?

My Ans: Not possible (though i was not sure about my answer)

2. If a file has millions of records is it possible to read that file's particular field for all the records into an array?

My Ans: Yes possible. ( here after interview, i thought there may be some limit on the maximum size of array and interviewer's main intention was to know the limit on the max size of an array variable)

3. TO run a CICS program, which all tables needs to be set up?

My Ans: PCT,PPT and RCT

Can anybody please tell me the appropriate answers of the above questions? i will be very thankful.

PS: i asked the interviewer for the answers of above questions too but he told me that his manager will get back to me and didn't give the answers for these questions.
Back to top
View user's profile Send private message

Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Wed Sep 08, 2010 10:27 pm    Post subject: Re: Some Interview questions
Reply with quote

GaganGarg wrote:
Hi,

Here are some interview questions that were asked to me;

1. If we have two arrays in COBOl program having INDEXED BY clause, (suppose array1 with INDEX I and array2 with INDEX J), is it possible to access the elements of array1 by using INDEX number J? I.e. can the index of one array be used with another array indexed by some other index variable?

My Ans: Not possible (though i was not sure about my answer)


It may be possible under certain conditions but it is not advisable! You can do it if the elements of both arrays are the same size.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7995
Location: Bellevue, IA

PostPosted: Wed Sep 08, 2010 10:48 pm    Post subject:
Reply with quote

Question 2 needs a "maybe" answer. Enterprise COBOL allows tables (actually, 01 level variables) to be up to 128 megabytes (minus 1 byte) in size, so as long as the number of entries times the size of each table entry remains under the limit it can be done. But if the limit is exceeded, then the answer is no it cannot be done.

Question 3 is too broad -- you'd need the SIT, for one example, but if that one isn't available the CICS region won't come up. The minimum to run a program in CICS is the PCT (old terminology, by the way -- RDO has been out quite a while now) since the only thing required to run a program is the program definition. If the program is running as a transaction, then the PCT would be needed to define the transaction -- but programs can run without being started as a transaction so the PCT entry is not required. The RCT applies only to DB2, so if the program does not use DB2 then the RCT entry would not be required, either.
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Sep 09, 2010 4:14 pm    Post subject: Re: Some Interview questions
Reply with quote

GaganGarg wrote:
PS: i asked the interviewer for the answers of above questions too but he told me that his manager will get back to me and didn't give the answers for these questions.
with the answers?
Back to top
View user's profile Send private message
GaganGarg

Active User


Joined: 31 Mar 2010
Posts: 134
Location: India

PostPosted: Thu Sep 09, 2010 4:17 pm    Post subject:
Reply with quote

ummm..
I meant here that he didn't give the answers and he get rid of giving the answers by saying that his manager will tell me the result of my interview..
Back to top
View user's profile Send private message
Anuj Dhawan

Senior Member


Joined: 22 Apr 2006
Posts: 6258
Location: Mumbai, India

PostPosted: Thu Sep 09, 2010 4:24 pm    Post subject:
Reply with quote

Well, I know how it goes in Indian Market, at the time of Interviews. I was just pulling your leg, hope no harm is done icon_smile.gif.

Good Luck..icon_smile.gif
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 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
No new posts Where can i find Interview questions ... Elixir Mainframe Interview Questions 4 Sat Feb 20, 2016 12:38 am


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