IBM (International Business Machines) Interview Questions

 
1.
What is the difference between Null compression and default compression?
2.
How to initialize a variable which is a constant in a LDA. Suppose I want to declare a variable #a N1(1:7) having constant values as 1,2,3,4,5,6, and 7 for respective occurance then how can we do that?
3.
What is an Associator in ADABAS?
4.
What is the significance of DBID used in Adabs?
5.
Suppose If i have updated few fields of Adabas file using UPDATE command, and after that i used display to see that field get updated or not. If in Display it showing nothing or record did not get updated then what can be the possible reasons?
6.
How will you the specification of database file?
7.
What is adabas?
8.
How to search particular records from the database file in RPG?
Suppose, there are 100 records in the file.i need to retrieve all the records matching/equal to the particular NAME field. How can we do the above using SEARCH criteria other than using the IF cond?
9.
Explain this error: "All Record Formats for externally-described file ABCD ignored or dropped due to error; file ignored."?
10.
What is the difference between ITER and DO? We know both are used to execute set of statements repeatedly, but what is the main difference?
11.
What are the commands that can be executed in CLP but not in RPG? Why?
12.
Why we sometimes use same file name in FILE and TOFILE in OVRDBF and sometimes different?
13.
In RPG program one file using as a PRIMARY file while running program some of the records reading twice any body know why its happening?
14.
What is difference between rename and prefix?
15.
Suppose 4 persons a, b , c , d have to go to concert which will held in 17 minutes. there is a bridge which only 2 persons at a time can cross. its night and they have only one flashlight with them. Flashlight cannot be thrown. one person should return with the flashlight

all 4 person have different speed.

a = crosses bridge in 1 min.
b = crosses bridge in 2 min.
c = crosses bridge in 5 min.
d = crosses bridge in 10 min

how can they all reach in time?

Ex- suppose a and d crosses bridge which will take 10 mins and then d returns back with a flashlight which will make 20 mins and mission is failed.?
16.
HOW TO DEBUG A BATCH JOB WHEN IT IS IN MESSAGEWAIT(MSWG) STATUS. I KNOW THE STEPS FOR BATCH EBUGGING, BUT IM CONFUSING WITH WHEN WE SUBMIT ANY JOB FOR BATCH DEBUG WE PUT IN HELD STATE. SO HERE ALSO DO SAME THING OR ANY OTHER WAY?
17.
How to retrieve RRN value in RPGLE program?
18.
Explain ICM instruction?
19.
Can we use an equated value as operand for an MVC instruction? Reason for the same?
20.
How to retrieve the instream data in SYSIN?
21.
How to Pass the parameters from JCL to assembler Pgm?
22.
WHAT WILL HAPPEN IF WE DROP THE BASE REGISTER IN THE PGM WHICH CONTAINS ONLY ONE BASEREG?
23.
Why do we have multiple base registers in certain programs?
24.
What is the difference in data type "X" and "P"?
25.
Why do we use "drop"? What does "using" do?
26.
How to initialize a register to 0000?
27.
What is house keeping in assembler? And explain the following code

HELLOTSO START 0
* PRINT NOGEN
BEGIN SAVE (14,12)
LR 12,15
USING TYPE,12
ST 13,SAVE+4
LA 11,SAVE
ST 11,8(13)
LR 13,11
28.
What is base register?
29.
Why can only 256 bytes be moved from one address to another in a MVC?
30.
How are data passed from JCL parm to assembler program. And how is data passed from a calling program to an assembler called program?
31.
What is the use of TRT instruction and how it is working?
32.
What is need of START 0? In steed of can we use anyother numerics? if we use what will happen?
33.
How do you round the addition or subtraction of two numbers in assembler?

What does the following code do?
AP WKUR,=P5 where WKUR is a label?
34.
HOW MANY MAXIMUM BASE REGISTERS WE CAN HAVE IN A PROGRAM AND ALSO HOW MANY MAXIMUM BASE REGISTERS WE CAN HAVE IN A SINGLE PROGRAM?
35.
How to pass instream data in sysin with Assembler?
36.
Can we use MVC instruction to move pack field to pack field. which instruction you will use and why?
37.
How to initialize 20,000 bytes in the Assembler?
38.
Write the fetch cycle and execute cycle for following instructions:JMPNZ (jump to the given address if the accumulator not equal to zero) RET(return from a subroutine) ADB (add the contents of register B to the accumulator and save result in the accumulator)?
39.
What is the difference between various read and find statement,and which one should be used when for better adabas performance?
40.
registers(0-15) ,where they are going be resides does that mean here is it resides whether real or virtual memory? and why? then why we are assign even registers(0 to 6) for FP operations?
41.
How to produce SOC7 abend?
42.
How to access VSAm file?
43.
Change process tool(code changes from dev to prd) The changes made to your code should be effected in live. How the process takes place. That is how can you move the code changes from development to production?
44.
Explain about maximum displacement and how to cross this limit?
45.
What is IBM CLIST (Command List)?
46.
What is Time Sharing Option (TSO)?
47.
What is Multiple Virtual Storage (MVS)?
48.
What is OS/390?
49.
What is z/OS?
50.
What is the difference between section,paragraph and sentences?
51.
How array can be declare in cobol?
52.
What is the difference between comp & comp-3?
53.
What is comp?
54.
What is PERFORM? and its types?
55.
What is the difference between SEARCH and SEARCHALL?
56.
WHAT ALL THE CONDITIONES REQUIRED FOR USING OPEN OPCODE ON A FILE?
57.
Can we open close file in COBOL any number of times?
58.
What are Fillers?
What is the actual use of Fillers? With mall/simple Example?
59.
What is the cobol compiler?
60.
How to detect record is locked in Cobol/400?
Wat is the solution for that?
61.
How to Convert 2010/02/11 to m/dd/yyy.. with string and without string if any other method... code?
62.
Code how to read 5th element of the array?
63.
How to update data area in cobol 400 program?
64.
When search all is used in cobol program without sorted input data?
65.
How can i change the below code in SQL to cobol/400?
EXEC SQL SELECT COUNT(*) INTO : WS-COUNT FROM Db file
WHERE Field 1 = : WS-VAR AND
Field 2 = : WS-USERID
END-EXEC
66.
What is redefine and its syntax?
67.
What is INPUT PROCEDURE and OUTPUT PROCEDURE?
68.
Define sort? and its syntax?
69.
What are the different type of meta operations available in plex?
70.
What is the difference between call and ++call?
71.
What is a continuation triple? what is the use of limit sys?
72.
How to create a link between multiple maps in a mapset? How to make use of Transid in this case?
73.
What are the different types of model available in coolplex?
74.
How to know total no of records in pf with out using sql?
75.
Can we concatenate fields in physical file? If yes how can we do?
76.
I had created one physical file tell me command to enter data in to?
77.
A pf containing 100 records... my query is how to display from 11th record in the pf?
78.
What is the purpose of the chain and setll and setgt?
79.
what is the interactive job? what is the batch job? How to change the batch job to interactive job?
80.
One physical file can have how many max of logical files? what is the primary file?
81.
How to update physical files using normal logical file?
82.
How to update physical file using logical file with example?
83.
What is open data path? and what is the diff b/w access path and open data path?
84.
How to know logical file belongs to which physical file without source?
85.
How to know the particular record in pf with out reading?
86.
I have Physical file with 100 records,there is no any duplicate records in this pf.Based on this pf one Logical file i have used.But this lf is viewing only 80 records only of that pf?What is the reason for this?
87.
When we create a PF and did not fill up Maint parameter, then by default which access path will the system take & why?
88.
How to retrieve a physical file after deleting that? What is keyword used for that?
89.
How to read a PF in reverse(from last rec to first) using CL?
90.
Suppose i have a PF,it contains 5 members,how to access particular member data from logical file ?and what is the use of member in PF?
91.
How to find the list of source physical files in a library?
Is there any way to get a list?
92.
How to add a field to a PF and compile it without loss of data?
93.
Is it possible to create a logical file whose Physical file is not in same library?
94.
Is Constent can be define as a key field?
95.
Why we create the Physical File Member?
96.
Why Journalling is compulsory before Commitment Control?
97.
How many max. Record format a logical file have?
98.
Maximum how many fields we can create under a record format of PF?
99.
Last statement of any RPG pgm is LR?
100.
How to fetch even records from one file to another file by using ICETOOL in JCL?
101.
File1 has 100 records and file2 has 200 records i want to copy 50 records which r in both file into file3?
102.
What is use of linkage section?
103.
What is difference between comp and comp-3?
104.
How do define Dynamic array in COBOL how do u define single dimensional array and multidimensional array in your COBOL?
105.
How To get the last record in VSAM file in cluster? And How can u get the ksds file records into ur COBOL program? Please tell me about these two questions.?
106.
Tell about How do u eliminate the duplicates?
107.
What is difference b/w file-aid tool and file-aid utility?
108.
How to override a dsn that is contained in a proc called by another proc? I need to do the override in the calling JCL?
109.
if a pic 9(3) value 354,b pic x(2) value 46 then
a)a>b
2)a 3)error
110.
Suppose oza017.myorg.emp has 100 records ,oza018.myorg.staff has 200 records but 50 are the common records in both files copy all the common records into oza017.myorg.xyz dataset?
111.
A job has 150 steps i want to execute only 57th step?
112.
A job has 90 steps i want to execute only step7 and step15?
113.
WHY LRECL NEEDS TO BE 4 EXTRA THEN THE COBOL FILE LENGTH & WHAT IT CONTAIN IN THAT LENGTH?
114.
What are the parameter we cannot use in procedure? How many instream we can write in single jcl? Can we call instream to catalog and catalog to instream?
115.
While creating a table, by mistake you have given size of one field as 10. But as per requirement size should be 8. What is your next step?
116.
Suppose I have two tables A and B. Both tables are connected with SSN number as foreign key. I want to retrieve a column data from B table. How will you write a query?
117.
How can we increment subscript and index?
118.
We have an output dataset in job with disp parameter as SHR.
Can we write data in that file dataset?
119.
select distinct(empid),distinct(dept),name
from EMP
will the above query work?
120.
How to handle -911 (deadlock) error in a db2 program so that the program will never abend?
121.
Suppose I have 1000 rows in a db2 table. I want to update first 100 records, How do I do it?
122.
Can 88 level variable be declared in FD section?
123.
How would find total records in files using seqientional?
124.
What is label record is standard or omitted in file description of data division?
125.
i need the code for this program in cobol.
2+1=3
4+3=7
6+5=11
8+7=15
10+9=19
126.
What is PDES?
127.
WHAT IS DIFFEENCE BETWEEN PDS AND PDES?
STEPS BEFORE MERGING?
DUMMY DATASET USES?
DIFFERENCES BETWEEN IDCAMS AND ICETOOLS?
DIFFERENCE BETWEEN ALL JCL UTILITY TOOLS?
128.
How many register we are using in mvs?
129.
What is full form of SPOOL?
130.
What is basic difference between "DIRECTORY" and "PDS" in IBM MAINFRAME?
131.
How to define a DIRECTORY and what is the
structure and definition for the same?
132.
What are the sub parameters for UNDO command? How does it work?
133.
What is the output of the following command given in TSO/ISPF terminal?

SRCHFOR abc SRCHFORC xyz, (+5)
134.
How to send a SMS to a mobile through Mainframe MVS?
135.
How to create a new pds with the structure of an existing pds?
136.
What is the panel name of ispf primary option menu?
137.
What is the facility that allows mainframes to be partitioned into LAPARs?
a.Z/os
b.PR/sm
c.Vitual storage
d.Coupling facility
138.
What is swap-in and swap-out?
139.
What is address space in MVS?
140.
What is the size of the address space in KBs for 16 bit address space?
141.
How to receive data passed through JCL parm parameter in a Natural program? How Data definition is defined in the program?
142.
Explain difference between escape(top or bottom) and escape immediate(top or bottom?
143.
How many work file we can code in jcl?
144.
How to move cursor to a particular field when position is not known?
145.
How to find occurrence of MU and PE fields in a file?
146.
Explain difference between read work file 1 and read work file once? Why we are using work file once?
147.
Explain difference between read(1) and read work file once?
148.
Tell me Can we update with histogram?
149.
Is it possible to declare a GDA for an external subroutine?
150.
A field declared as P8 needs to be redefined as
Alphanumeric. What would be its new size?
151.
How to create 1 DDM that fetches 3 ADABAS files simultaneously?
152.
What is the quality process in development?
153.
What is a hyperdescriptor? How does it work?
154.
Explain ADABAS basic concepts. Like inverted list, address converter ,data storage?
155.
Can you explain control variable in online screens?
156.
How are you going to remove duplicates from the file that is being read?
157.
Can we see the copy book length using file-aid?
158.
What is COBOL coding sheet?
159.
If the number of parameter is more than the expected then NAT0919 error is displayed. How many parameter are allowed in a CALL and CALLNAT statement?
160.
Explain the difference between External subroutine and
subprogram?
161.
Suppose You are processing an input file in a Natural program and you want the program to fail if the file is empty. What command you use in Natural to force it to fail?
162.
What happens when you issue a ESCAPE ROUTINE in a program?
Will there be any compilation /Run time erro?
163.
How do you pass data from a Natural Program to an External Subroutine? Can it share the LDA of Program as in Internal Subroutine?
164.
Explain how to ftp the natural program to desktop? (from mainframe to pc), is it possible?
165.
Explain why do we use file-aid for seqential files?
166.
Tell me what type of files we can process thru file-aid?
167.
Explain Is it possible to code GOTO statement in NATURAL? if yes please provide the syntax of the same?
168.
What is IBM OS/2?
169.
Why OS/2 Warp 4?
170.
Explain Software prerequisites of OS/2?
171.
Explain OS/2 Warp 4 resource requirements?
172.
Explain OS/2 Warp 4 performance tools?
173.
Explain CPU Monitor BonAmi Software Corp?
174.
What is AFOper?
175.
In Real Storage usage. By monitor through RMF III the usage of Real Storage keep in increasing everyday. Why this happen?
176.
What is meant by online job and batch job?
177.
How to execute a query in QMF at a particular time?
178.
WHICH ONE IS BETTER EITHER SPUFI OR QMF?
179.
What are differences between QMF and SPUFI?
180.
What is QMF?
181.
What is QSAM file?
182.
What is QSAM? Use of the QSAM? How it is used?
183.
Suppose I have a KSDS File. I have a Records like 1,2,3,4,5,6,...100. I want to read using Dynamic mode like from 10 the Record onwards like, 10,12,14,16,18,....60. Wat is the command for this?
184.
How to access data held on the JES spool?
185.
How to access data in control blocks such as jobname?
186.
How to find or access the current level of a GDG?
187.
How to Run My Rexx Exec?
188.
Suppose i want to code a rexx program in order to get the inputfile and output files of jcl. i want code snippet or the coding for this?
189.
i am getting error while editing macro, its not even entering into the macro, getting error like
31 *-* "EDIT DATASET("DSN"("MEM")) MACRO("CHGLINE")"
+++ RC(-3) +++? any idea
Why?
190.
How to code rexx in jcl to read in a lpar
cpu usage file and select 1. date, time 2. some system names 3. cpu usage for each system. The input file has hourly reporting. The output file (CSV)is for excel use. Run in batch mode. Output in FB?
191.
Suppose If there are a set of statements and each has a word "value" in it, If I want to display all these statements so that the word "value" is aligned, then how do
I code this in REXX.

e.g - The value of X is Y.
Wot is its value?
Do u know its value?
I want to know its value?
192.
I want to code a REXX Program in order to load many tables in a database simultaneously in a batch fashion. Currently batch codes ar available in which only one job is submitted at a time and this loads only one table. My requirement is that many tables should be loaded at a time when one Job is submitted and can this be done using REXX Tool?
193.
How to code the db2 queries using rexx, and also plz send some link and examples using db2 queries?
194.
How to pass parms to ISPF Edit macro?
195.
What do unusual return codes such as -3 and 0196 mean?
196.
What is importance of MAPFLD IN OPNQRYF FILE?
197.
How can we know running job is batch or interactive?
198.
Need a sql query: retrieve all duplicate records in table?
199.
WHAT IS MENT BY RECORD LEVEL IDENTIFIER?
WHAT IS THE PURPOSE OF THIS?
200.
If my rpg program has a date field, What extra care I have to take while compiling that RPG program?
If the file is keyed and I have declared the file as well as Key list properly in my program. Still am getting an error message like "Chain/reade operation is not allowed" What may be the case?
201.
Suppose my file has 10 fields and I want to make the 2nd field Zeros in all records. And assume I have millions of records and I dont want to read each record and update the desired field with 0. Any other way to do this in one step operation?
202.
Assume my file has 100 records and I want to see only first 10 records. Is this possible through LF?
203.
Suppose I have 3 jobs A B and C. I want to submit B after successful completion of A and want to submit C after successful completion of B. Without using job scheduler or job queue, how can i do that through CL program?
204.
What is difference between Bind by copy and bind by reference?
205.
Why we cannot call a service program? If I add a PEP can i call the service program?
206.
What are the types of identifiers?
207.
What is file identifier where we can use?
208.
Explain MDT?
209.
How can we override a file during runtime in RPG? Without using OVRDBF or calling a CL program?
210.
What is the length of Signature?
211.
We have job which is running as batch. it takes atleast 06hours to complete tht job. bu i wanna do tht job with in 3hours?
212.
How can we search particular records from the database file in RPG. For example, there are
100 records in the file.i need to retrieve all the records matching/equal to the particular NAME field. How can we do the above using SEARCH criteria other than using the IF cond?
213.
What is the difference between ITER and DO ? I know both are used to execute set of statements repeatedly, but what is the main difference?
214.
Errors in Sql query will be in which state?
215.
This is rpg3 code
W0RTN IFEQ @CN,002
What is the means @CN,002?
216.
What is the best way to code to provide me
the info that there are disks in the array failing or failed? How to code? Run in batch?
217.
What is SYSPLEX?
218.
What is PARALLEL SYSPLEX?
219.
What is MONOSYSPLEX?
220.
What is an IMS Database?
221.
What is DBMS in IMS?
222.
What are the objectives of DBMS in IMS?
223.
What is IMS (DB/DC)?
224.
What do you mean by Hierarchical Database?
225.
What are the advantages and disadvantages of a Hierarchical Database?
226.
What is DL/I?
227.
Explain IMS Software Environment?
228.
What are the main control blocks available in IMS DB?
229.
What is DBD?
230.
What is PSB?
231.
What is ACB?
232.
What is PCB?
233.
What information does a DBD contain?
234.
Explain DBDGEN process?
235.
Which languages does IMS support / application program languages?
236.
What is a segment in IMS?
237.
What are the two types of fields available in IMS DB?
238.
What information does a PSB contain?
239.
Explain PSBGEN process?
240.
Explain ACBGEN process?
241.
What is the advantage of dynamic generation of ACB?
242.
What is the disadvantage of dynamic generation of ACB?
243.
What is the advantage of creating the ACBs well ahead of time?
244.
What are the processing modes available in IMS DB?
245.
What is meant by Batch DL/I mode?
246.
What is meant by MPP mode?
247.
What is meant by BMP mode?
248.
Can we use PROCOPT on PCB and Segment field (SENSEG)?
249.
What are the retrieval sequences in IMS DB?
250.
What is the maximum number of levels allowed in IMS DB?
251.
What is the maximum number of segment types allowed for a single database?
252.
What is the maximum number of fields allowed per segment and what is the maximum number of fields per database?
253.
How many root segments do we have per database record?
254.
What are the two ways in which DL/I interface can be invoked?
255.
What is the maximum number of PCBs allowed in a PSB?
256.
What is the maximum of key fields and search fields allowed in a segment?
257.
What is IDMS?
258.
Why would you use find and get rather than an obtain?
259.
If the stored record is not defined as automatic of a set, how can it be stored as a member of the set?
260.
Distinguish among erase, erase permanent, erase selective and erase all?
261.
So manual and automatic are the connect options for a set. What are the disconnect options?
262.
What is currency in IDMS?
263.
What sets will the stored record connect to?
264.
How does IDMS insure data integrity?
265.
What is an area sweep and when is it used in IDMS?
266.
When you are obtaining next within a set and get a end of set return code, on what record are you now current in IDMS?
267.
What is a bind in IDMS?
268.
How does IDMS communicate with CICS?
269.
Is there a application program coding difference between local and central version mode in IDMS?
270.
If you are current on the owner of a set, what is the difference between an obtain next and obtain first in IDMS?
271.
What is the difference between a schema and a subschema in IDMS?
272.
What is a region in IDMS?
273.
What is a page in IDMS?
274.
Explain the difference between record occurrence and record type in IDMS?
275.
What is the difference between local and central version operating modes?
276.
What is a run unit in IDMS?
277.
What is an OOK-Rec in IDMS?
278.
What is a junction record in IDMS?
279.
Name and explain the three location modes?
280.
What is a set in IDMS? What pointers are required, what are possible? How may sets be ordered?
281.
What is the purpose of a READY?
282.
What does a COMMIT statement do?
283.
What does a ROLLBACK do in IDMS?
284.
What does a FINISH do in IDMS?
285.
What is the IDD in IDMS?
286.
What is the meaning of the return codes 0307 and 0326?
287.
What is the meaning of Copy IDMS Subschema-Binds?
288.
What is the meaning of Copy IDMS Subschema-Binds in IDMS?
289.
What is autostatus in IDMS?
290.
What does a store statement do?
291.
What is JCL?
292.
What is the function of DD DISP parameter?
293.
How is the record format of an output dataset specified?
294.
What is the purpose of DD * statement in JCL?
295.
A DD statement has 2 types of parameters. Name them?
296.
What is the function of JOB statement in JCL?
297.
How can a job send a status message to a TSO user at the completion of a job?
298.
What is the function of a DD statement?
299.
When output dataset space is required, what quantity categories are used?
300.
What statement marks the beginning of a job step; assigns a name to the step; identifies the program or catalogued or in-stream procedure to be executed in the step?
301.
How can unused space allocation be returned to the system when a dataset is closed?
302.
Can an individual step be restricted from using all the jobs allowed CPU time?
303.
Where can program checkpoints be stored for use in a restart?
304.
How can the disposition of sysout datasets be set for an entire jobstream?
305.
What statement marks the end of an in-stream or Catalogued procedure?
306.
What is the function of DD name parameter with a 2 part structure; Audit.Report?
307.
Which DD parameters are required?
308.
How can an in-stream dataset be terminated?
309.
What is the function of the DD DCB keyword?
310.
What is the maximum length of a single line of JCL?
311.
What is the purpose of DD DUMMY statement?
312.
Many JCL statements contain specific values designed to direct and control the execution of the statement. What are these fields called?
313.
When space is allocated for an output dataset, what units can be used?
314.
What is the format of comment statement?
315.
A DD statement consists of 4 fields. Name them?
316.
What DD statement is used to supply the name of a dataset?
317.
What is the purpose of the DD KEYLEN parameter?
318.
What is the function of the STEPLIB DD statement?
319.
How can return codes be tested before execution of a job step?
320.
What is concatenating?
321.
How can values be passed from the job stream to an executable program?
322.
Must tape dataset definitions include VOL=SER specifications?
323.
What is the function of //JCLLIB statement?
324.
What parameter of the job statement is used to limit the CPU time consumed by the job?
325.
What statement marks the beginning of an in-stream or cataloged procedure in JCL and assigns default values to parameters defined in the procedure?
326.
How can a stopped job be started again?
327.
In order to continue a job after a return code of 12 in step1, what the step2 EXEC statement include?
328.
In SMS datasets, what is the function of the DD MGMTCLAS keyword?
329.
How can the submitting users RACF authority be overridden in a job stream?
330.
What parameters can be used to limit the number of records written to a SYSOUT dataset?
331.
What statement can be used to send data to another MVS JES3 node?
332.
What parameter directs the output of the job log dataset?
333.
How can a jobs execution priority be modified?
334.
How can the attributes of one SMS dataset be copied to another dataset?
335.
What is the function of //CNTL statement?
336.
If a (+1) generation dataset is created in the first step of a job, how can it be referenced in later steps of the same job for input?
337.
In SMS datasets, what is the function of the DD AVGREC keyword?