View previous topic :: View next topic
|
Author |
Message |
GaganGarg
Active User
Joined: 31 Mar 2010 Posts: 134 Location: India
|
|
|
|
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 |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
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 |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 |
|
|
GaganGarg
Active User
Joined: 31 Mar 2010 Posts: 134 Location: India
|
|
|
|
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 |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
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 .
Good Luck.. |
|
Back to top |
|
|
|