Sei sulla pagina 1di 3

L&T interview Qs as follow: 1) Explain d current project and role and responsibilities(in detail) 2) COBOL a) i have 2 pgm:- A calling

B write the how to call means everything like how to use call n using statements and how you pass parameter. now, if A hhave X,Y parameter to call B, If X length getting changed what will happend n how to resolve? ANS:- We need to modify corresponding length of parameter in pgm B also otherwise get system abend. b) how can i make it dynamic(without using JCL) ANS:- put X or pgm B parameter in call statement instead of CALL"B" c) I have one copy book ABC and this copy book used in pgm A,B,C, if lenght of copybook got changed than how may pgm need to recompile & why ANS:- ALL pgm bcoz new inserted parameter not in old load module and changes will nt b pickup d) in copybook ABC, i add new variable like 05 data pic x(10).(if lenght is nt changed) this data variable only used in pgm A, now how many pgm need to recompile and why ANS:- only one pgm A need to recompile coz it effect only pgm A and no other changes in other pgm so old load module will work for same. e) if i have 05 filler pic x(20). in copybook ABC than? ANS :- same above scenario. f) if length is got changed? ANS:- ANS C will be picture. g) now i have one array variable in my pgm i need only access 10th occurrence?(with coding) ANS:- read array in sequentially and access 10 occurrence like acc(10th) perform varying 1 by 1 one I=10 move acc to ws-acc. add 1 to I (set I up by 1) or use any increment variable to increase I till 10 occurrence. h) if i read a file sequentially cond A :- if a=100 move to ws-data(another file variable) if a=200 move to ws-dataB(another file variable) write d code like technical sepcification.

ans:- assume both r have seq file declare necessary variable in working storage and file section open i/p file in read only open both output file in write than read the file compare d variable according to req than move and write into d file according ALL DETAILS WILL BE CODING ( i wrote d entire code just explain d functionality here only) i) how to make technical specification from business requirements. ANS- according to req need to analysis impacted pgm and files if any length changes or any variable need to modify need to mentioned. see the complexity of changes and what business want to enhance..( say about d impact analysis and cod changes). j) how may perform statement and explain them. ans:- all perform with examples explain in coding manner only. k) if, i have one output file in //sysout dd * now i need to in a file or data set how u will get info for file & will sysout show any info?? ANS:- need to see pgm in jcl step(exec) go to pgm and see the file specification like seq or vsam.. now if file in sysouut than definitely any info about length info over there and may b pgm have coz any how this is d output file( i m sure pgm have any info regarding output file length) if nt than need to see input file and sort statement or need to analysis entire jcl where is origin of file and input file specification. if all the things nt helpful than need to hit n trail method acordinng to in file specification. if still nt getting desire result( they puush me a lot on this) than need to contract client team or admin of spool to get the storage length of that particular sysout. n do the again hit n trail method. JCL:a) i have 6 steps in jcl 6th step depends the cond code of 5th. if 5th get cond code 4 than how u code ANS:- //step6 dd dsn=xyz,cond(4,LE). b) if i step5 did nt give any cond code than?? ANS:- I said i dont knw( need to find ans) c) if, i want to excute step6 only when step1 and step3 will get abend??() how u code) ANS:- cond=(only,step1,step3)( dont knw exactly) d) i have file have 10 records need to sum of salary of 10 records with the help of JCL ANS:- dont knw e) in this 10 records need to sort according to DOB n youngest on top

ANS:- based of record position ( bt they need coding) they asked about what kind of sort u used and how much u have explore on that? i said simple one f) i have one stream 'INDORE' i need only 'DORE' in other variable how?? ANS:- i said with d help of string operation bt they need coding ans(means what is exact code). they asked more Qs and told ki, they need coding as well in proper manner. means if u assume something it should be like WS-DATA or like that. they didnt told me about this bt while writting of Qs in paper they used like this. so, we have to adopt same thing. for good impression they ask many Qs about project befor technical started. 1) how many jcl u have in production 2) how u interact with online. 3) how may pgm in u r appliication 4) proper description of project. 5) how u tested the policies( coz insurance domain) 6) what kind of u r client is( i told my client is fortune 500 )

Potrebbero piacerti anche