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

Some Interview questions


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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: 8697
Location: Dubuque, Iowa, USA

PostPosted: Wed Sep 08, 2010 10:48 pm
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

Superior Member


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

PostPosted: Thu Sep 09, 2010 4:14 pm
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
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

Superior Member


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

PostPosted: Thu Sep 09, 2010 4:24 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Comp interview questions Mainframe Interview Questions 5
No new posts Interview Questions on Cobol DB2 program Mainframe Interview Questions 5
No new posts The Last Two Question For You To Ask ... Mainframe Interview Questions 0
No new posts Mainframe Interview Questions CICS,CO... Mainframe Interview Questions 6
No new posts Viewing executing process in NDM .. q... IBM Tools 0
Search our Forums:

Back to Top