IBM Mainframes interview questions.
Posted: Tue May 06, 2014 12:32 pm
Hi,
I've listed below some of the questions I was asked in a recent interview and I was not sure if I got the answer correctly. At times, I just did not know the answer. Can you please have a look and advise on the answers:
1.
Interviewer: How will you split one Input file into two output files?
Me: Using SPLIT of SORT product.
Interviewer: What is you've to do it using COBOL?
Me: READ input file and start writing records in two different files alternatevely .
Interviewer did not seem convienced. Can you please guide if it was correct.
2.
Interviewer: What is the maximum value that a subscript can use?
Me: I was not sure. I said, 128 MB is limit of the Working-Storage Section and if there is no other variable that much value it can take!
Iterviewer lokked at me as if I've stolen his cheese! Can you please guide if it was correct.
3.
Interviewer: How will You change the column name in a table, explain the steps.
Me: I think with alter command we can add a column but, I think with alter command we can't change the column name. Can someone please guide here.
4.
Interviewer: How will you pass parameters from JCL to a cobol program other than parm statement & sysin dd*?
Me: I did not know the answer.
5.
Inteviewer: Two files are defined this way and beng read in a COBOL program
File-A is defined as : Lrecl=80,Blksize=800
File-B is defined as : Lrecl=80,Blksize=8000
How many bytes are read in I/O in each of the cases.
Me: Not sure. Please guide.
6.
Interviewer: I have a 80 byte string in cobol. It is having character "A". I want to replace A by B.How will i do that?
Me: Using INSPECT REPLACING.
7.
Interviewer: In a db2 program a column name is given wrong. Will I will get error during compilation time or run time?
Me: I think it is during compilation time. Is it correct ?
I've listed below some of the questions I was asked in a recent interview and I was not sure if I got the answer correctly. At times, I just did not know the answer. Can you please have a look and advise on the answers:
1.
Interviewer: How will you split one Input file into two output files?
Me: Using SPLIT of SORT product.
Interviewer: What is you've to do it using COBOL?
Me: READ input file and start writing records in two different files alternatevely .
Interviewer did not seem convienced. Can you please guide if it was correct.
2.
Interviewer: What is the maximum value that a subscript can use?
Me: I was not sure. I said, 128 MB is limit of the Working-Storage Section and if there is no other variable that much value it can take!
Iterviewer lokked at me as if I've stolen his cheese! Can you please guide if it was correct.
3.
Interviewer: How will You change the column name in a table, explain the steps.
Me: I think with alter command we can add a column but, I think with alter command we can't change the column name. Can someone please guide here.
4.
Interviewer: How will you pass parameters from JCL to a cobol program other than parm statement & sysin dd*?
Me: I did not know the answer.
5.
Inteviewer: Two files are defined this way and beng read in a COBOL program
File-A is defined as : Lrecl=80,Blksize=800
File-B is defined as : Lrecl=80,Blksize=8000
How many bytes are read in I/O in each of the cases.
Me: Not sure. Please guide.
6.
Interviewer: I have a 80 byte string in cobol. It is having character "A". I want to replace A by B.How will i do that?
Me: Using INSPECT REPLACING.
7.
Interviewer: In a db2 program a column name is given wrong. Will I will get error during compilation time or run time?
Me: I think it is during compilation time. Is it correct ?