You are on page 1of 7

Question: Can you execute a PROC from another PROC? (Entered on: November 27 !

""" by #u$o%
&ns'er: Nestin$ is a##o'ed( ) thin* u+to !, #eve#s( P#ease chec* out(
Question: -hat is a .. statement?
&ns'er: .ata .efinition
Question: Can you execute a PROC from another PROC?
&ns'er: ) did not *no' the ans'er and my intervie'er said NO( /ater ) tried and executed PROC from a PROC three
#eve#s dee+( 0anua#s do not state any #imit on PROC ca##in$ PROC or nestin$(
Question: 'hat is dd statement
&ns'er: #*1*1
Question: 'hat is dd statement
&ns'er: ddd
Question: -hat 'i## ha++en if you attem+t to restart a 1ob in the midd#e of a 2C/ 33 )4 (((( 33 EN.)4?
&ns'er: 2ob 'i## fa## throu$h to the EN.)4 (not executin$ any ste+s% then resume execution 'ith the first ste+ &45ER
the 33 EN.)4(
Question: -6&5 )7 & 4)/E?
&ns'er: & 4)/E )7 & CO//EC5)8E 9RO:P O4 RECOR.7( 56E N:0;ER O4 RECOR.7 ON & 4)/E
.EPEN.7 EN5)RE/< ON 56E &PP/)C&5)ON &77OC)&5&. -)56 56E 4)/E( 4)/E7 0&< CON5&)N &
4E- RECOR.7 56O:7&N.7 OR E8EN 0)//)ON7 O4 RECOR.7(
Question: 6O- 0&N< PO7)5ON&/ P&R&0E5ER7 &RE 56ERE )N 2O;75&5E0EN5?
&ns'er: 56ER &RE 5-O PO7)5)ON P&R&0E5ER7 )N 2O; 75&5E0EN5(
Question: -hat are three +arameters you can s+ecify on 2ob statement as 'e## as on exec stmt ?
&ns'er: 5ime Re$ion and Cond +arameters
Question: 6o' can you tra+ abends in the 2C/?
&ns'er: :se )4 &;EN. statement in the 2C/(
Question: 6o' do you restart a ste+ in 2C#?
&ns'er: :se RE75&R5=ste+ name(
Question: ho' do you +ass +arameters to tne +ro$ram as the 1ob is bein$ executed ?
&ns'er: by usin$ >+arm> +arameter in exec statement( the va#ue mentioned here shou#d be dec#ared in #in*a$e section in
the +ro$ram and +rocess thru +rocedure division( this techni?ue is very usefu# 'hen you do not *no' the +arametrs at
the time of codin$ the +ro$rams(
Question: -hy do you use a contro#card?
&ns'er: & contro#card can be a member of a +ds or a se?uentia# dataset and is used for storin$ the date fie#ds
.efinitions of 87&0 fi#es((((etc( <ou use contro#card because you cannot use a instream +rocedure in a
+rocedure(9enera##y you 'i## be ca##in$ a Proc from your 2c# and you cannot code instream +rocedure in the Proc and
so you 'i## +oint to the dataset 'hich is ca##ed contro#card(
Question: 6o' do you submit 2C/ via a Cobo# +ro$ram? 4or the above ?uestion the so#ution is as fo##o's((
&ns'er: )n your 2C/ define as332O;& 2O; !!!!2O;!3375EP@! EAEC P90=PRO9!33ddname ..
7<7O:5=(B)N5R.R%((((and your CO;O/(PRO9!% shou#d #oo* #i*e this7E/EC5 2C/C4)/E &77)9N 5O
ddname(O+en this fi#e and 'rite the 2C/ statements into this fi#e(Exam+#e(0O8E >335E752O; 2O; !!!!8)78E)76>
5O 2C/CREC(0O8E >3375EP@! EAEC P90=)E4;R!D> 5O 2C/CREC(and c#ose this fi#e(5hen 5E752O; 'i## be
submitted(
Question: 6o' do you submit a 2C/ under C)C7 environment ?
&ns'er: +ass a## the 1c# codes to a CO;O/ variab#e(shou#d be dec#are usin$ OCC:R7 c#as% and the 'rite the #ine one
by one to the s+oo# usin$ C)C7 commands #i*e 7POO/C#ose 7POO/O+en 7POO/-rite ( 4or more he#+ reffer CEC)
of C)C7 or C)C7 manua#
Question: -hat is the +arameter to be +assed in the 1ob card for the un#imited time irres+ective of the 1ob c#ass
&ns'er: 5)0E=!DD@
Question: .efinition of CON. +Cr in 2C/ and a correction to a +revious#y +osted ?uestion
&ns'er: CON. is a condition +arameter consists of 2 sub+arameters !st C return code from the +revious ste+ 2nd C
condition( )f CON. is true the ste+ on 'hich CON. is coded 'i## be ;<P&77E.(
Question: Q% -6&5 )7 0E&N5 ;< 7@7C &N. 7@CE@ 7<75E0 &;EN. CO.E7(Q:E75)ON &7FE. ;< 0r(
PR&8EEN%?
&ns'er: &% 7@C7 C .ata exce+tion error C you 'i## $et it 'henever you are tryin$ to move the #o' va#ues or s+aces into
the numeric fie#d or com+are the numeric fie#ds 'ith #o' va#ues or try to do some arithmetic o+erations on the #o'
va#ues( 5o avoid this you have to a#'ays initia#iGe the numeric fie#ds other'ise they 'i## contain the #o' va#ues(7@C E@
C ) have never heard of it #et you *no' if ) come accross it(
Question: 6o' to +ass the tem+ dataset form one 2O; ste+ to another?
&ns'er: ;y s+ecifyin$ the .)7P as P&77 for the tem+ dataset
Question: -hat is a CON. +arameter in 2C/?
&ns'er: CON. means condition +arameter( )t is com+ared 'ith systemreturn code of +revious ste+(33ste+! exec
+$m=abcd33ste+2 exec +$m=xyG cond=(D#t%ste+2 'i## be executed 'hen system return code of ste+! is#ess than D(
Question: -R)5E & 2C/ 5O EAEC:5E & 2O; ;< 7 &(0 ON 2&N 2@!"HI ?
&ns'er: 56E code )7 : 33B0&)N .E&./)NE=(@7@@;@!2@HI%
Question: 6O- 0&N< 5<PE7 O4 /);R&R)E7 &RE 56ERE )N 2C/ ?
&ns'er: /);R&R)E7 &RE O4 56REE 5<PE7(!(7<5E0 /);R&R)E7: 7:C6 &7 7<7!(/)NF/);2(PR)8&5E
/);R&R)E7: 7PEC)4)E. )N & 2O;/); OR 75EP/); .. 75&5E0EN57(E(5E0POR&R<
/);R&R)E7:CRE&5E. )N & PRE8)O:7 75EP O4 56E 2O;(
Question: -6&5 : 0E&N ;< )NC/:.E 75&5E0EN5 )N 2C/ ?
&ns'er: &N )NC/:.E 75&5E0EN5 ).EN5)4)E7 & 0E0;ER P4 & P.7 OR P.7E 56&5 CON5&)N7(56)7
7E5 O4 2C/ 75&5E0EN57 )7 C&//E. &N )NC/:.E 9RO:P(56E 7<75E0 REP/&CE7 56E )NC/:.E
75&5E0EN5 -)56 56E 75&5E0EN57 )N 56E )NC/:.E 9RO:P(
Question: 56E 0&A)0:0 N:0;ER O4 )NC75RE&0 PROCE.:RE <O: C&N CO.E )N &N< 2C/ )7 ?
&ns'er: !,(
Question: -hat you mean by s*e#eton 2C#?
&ns'er: 2c# 'hich chan$es durin$ run time ie the va#ues for the 1c# such as +$m name dd name 'i## chan$e (ie same 1c#
can be used for various 1ob e?uva#ent to dynamic s?#(((
Question: 6o' do you submit a 2C/ under C)C7 environment ?
&ns'er: Edit the 2C/ in Extra +artition 5.Q and submit the same usin$ some system command (not sure% under C)C7
subsystem( 5his is 'hat i thin* +#ease c#arify((((
Question: 'hat is 1c#
&ns'er: it is interface bet'een o+eratin$ system(mvs% J a++#ication +ro$ram( 'hen 2 re#ated +ro$rams are combined
to$ether on contro# statements is ca##ed 1ob contro# #an$ua$e
Question: -hat is the max b#oc*siGe for a 5a+e fi#e?
&ns'er: )t is E27I@(;ased on that 'e can ca#cu#ate effecient number of Records in a ;#oc*
Question: -hat are the basic 2C/ 7tatements for a 2ob?
&ns'er: !(2O; : )denfies a 1ob and su++#ies accountin$ info 2(EAEC : )dentifies a 1ob ste+ by indicatin$ the name of
the +ro$ram to be executed( E(.. : )dentifies a data set to be a##ocated for the 1ob ste+ D(.e#imiter (3B%: 0ar*s the end
of an inCstream dataset ,(Nu##(33%:0ar*s the end of a 1ob I(Comments(33B%: Provides Comments 7(PROC : 0ar*s the
be$innin$ of a +rocedure H(PEN. : 0ar*s the end of a +rocedure "(O:5P:5: 7u++#ies o+tions for 7<7O:5
+rocessin$(
Question: -hat does the statements: ty+run=scan and ty+run=ho#d doin a 2C/ statement
&ns'er: ty+run=scan chec*s the 2C/ for errors ty+run=ho#d ho#dsthe 1ob unti# further notice(
Question: -hich of the fo##o'in$ is On#ine transaction? C)C7 .;2 and 2C#
&ns'er: C)C7
Question: 6o' many PER4OR0>s are there in CO;O/C))?
&ns'er: ,
Question: 'hich is the most 'ide#y used batch +erformance monitor for .;2?
&ns'er: .;2P0
Question: -hat is Q7&0 error usua##y 'hen it is occurs?
&ns'er: :sua##y it is occurs at the time of 1ob submission(
Question: 'hat is the +ur+ose of inc#ude statement in a 1c#?
&ns'er: )t is used as an a#ternative for ste+#ib(-hen 'e s+ecify the dataset name in inc#ude it 'i## search in a## the
datasets s+ecified in the inc#ude dataset(
Question: )7 )5 PO77);/E 5O FNO- 56E RE0&)N)N9 4REE 7P&CE )N &N CON5RO/
)N5ER8&/3CON5RO/ &RE& ONCE &N )N7ER5)ON 6&7 ;EEN 0&.E(
&ns'er: NO5 PO77);/E
Question: 'hat does soc@D error mean?
&ns'er: this error is faced 'hen 'e execute the cobo# +ro$ram(the main reason for this error is that a variab#e is
defined 'ith #ess characters and 'e are tryin$ to move data 'hich is #ar$er than the actua# stora$e s+ace(
Question: -hat is 2C/
&ns'er: 2C/ is 2ob Contro# /an$ua$e and is used for ;atch +rocessin$( 5he startu+ +rocedures of O7 and standard
+roducts #i*e C)C7 etc are 'ritten in 2C/(
Question: )n 'hich tab#e P/&N is re$istered in ?
&ns'er: RC5
Question: 9.9?
&ns'er: 9.9 C $rou+ of dataset that are #o$ica##y or chrono#o$ica##y re#ated referred by name and a re#ative
$eneration number C an inte$er 'hich identifies the $eneration of a dataset and is coded in +arentheses after dataset
name( &bso#ute 9.9 name C 9xxxx8yy 'here xxxxCabso#ute $en(number yyCversion number( Can be se?uentia#
direct +artitioned( (87&0 C no%( 0ust a#'ays be cata#o$ed( &dvanta$e C a## datasets have the same name and system
*ee+s trac* of addin$ ne' and retainin$ +revious $enerations and de#etin$ o#dest successive $eneration( 5o create a
9.9 'e create a 9.9 index in the system cata#o$ 'ith ).C&07 uti#ity and then a mode# (+rototy+e .7C;% on the
same vo#ume to su++#y .C; information( Em+ty C 'hen #imit is reached a## members are removed from the index
other'iseCon#y o#dest( 7cratchCremoved members are uncata#o$ed J de#eted other'ise C removed J uncata#o$ed but
remain in the system (not members of 9.9 any more%( 9.9 number is u+dated at the end of the 1ob( )f number is not
s+ecified a## $enerations 'i## be +rocessed from the be$innin$
Question: 'hat is 1c#
&ns'er: it is used to commmunicate bet'een the termina#s(
Question: 'hat do you mean ;y s+oo#in$? Ex+and 7POO/?
&ns'er: 5his is mana$ed by 2E7(5his is used for Queuin$ the Out+uts that are intended for Printin$ and are first stored
in 7POO/.&7.( 5his can be mana$ed :sin$
Question: 6o' many )nstreamCProcedures(+rocs% can be Coded in a sin$#e 2ob?
&ns'er: 5he &ns'er is: !,
Question: 4OR 6O- /ON9 & 2O; C&N ;E EAEC:5E. CON5)N:EO:7/< )N & 0&)N4R&0E
&ns'er: 2DH .&<7
Question: 6o' may divisions are there in 2C/CCO;O/?
&ns'er: 7)A
Question: 0&A( NO O4 .. 75&5E0EN57 )N & 2O;
&ns'er: E27E
Question: 6O- 0:C6 7P&CE O7 &//OC&5E7 -6EN <O: CRE&5E & P7 OR P.7?
&ns'er: ,I F;
Question: 0)N NO O4 .&5&7E5 N&0E7(P.7% )N ONE .)REC5OR< ;/OCF?
&ns'er: 7)A
Question: 56E 0&A)0:0 N:0;ER O4 75EP7 )N & 2O;?
&ns'er: 2,,
Question: 6o' much is memory s+ace invo#ved 'hen 'e code ;/OCF7)KE5RF J C</
&ns'er: One b#oc* constitutes E2F; of formatted memory3 D2F; of :nformatted memoryI b#oc*s ma*es one 5rac*
J !, 5rac*s ma*es one cy#inder(
Question: Corrections in the ans'ers(
&ns'er: ) thin* the ans'er for the ?uestion by Fyati on march !"3!""H about 0aximum number of extents in
secondary a##ocation is !I J not one() thin* there is a missin$ .i+osition +arameter for the ?uestion by &non on march
!!L!""HCC P#ease add P&77(
Question: -hat is .7N.;@I ?
&ns'er: 5his is the P#ace 'here .;2 Cata#o$ resides
Question: -hat is the use of .7N.;@7 ?
&ns'er: 5his is the area 'here sortin$ ta*es +#ace in .;2
Question: -hat is the +ur+ose of )dentification .ivision?
&ns'er: .ocumentation(
Question: -hat is 2C/?
&ns'er: 1ob contro# #an$ua$e
Question: -6&5 )7 .&5&CO0 .;?
&ns'er: )5 )7 & .&5&;&7E :7E. -)56 87E(
Question: -hat is a .ummy :ti#ity and 'hat it does ?
&ns'er: )E4;R!D is a .ummy uti#ity and it is used for the sa*eof EAEC P90= (((( statment in 2C/M'hen used it
'ou#dn>t +erform any tas*N( e($( -hi#e &##ocatin$ a datasetyou don>t have to run any uti#ity Mthis cou#d be done by
$ivin$ dis+=ne' in.. statmentN( ;ut for a P90 name must be $iven in EAEC statment it is used(
Question: -hat E $uide#ines do 'e have to fo##o' 'hen concatenatin$ .. statements?
&ns'er: !( .atasets must be of the same ty+e (dis* or ta+e%2( &## datasets must have the same #o$ica# record #en$th E
5he dataset 'ith the #ar$est b#oc*siGe must be #isted first(
Question: On the .. statement 'hat is the main difference bet'een creatin$ a ne' se?uentia# f#at fi#e and a
+artitioned dataset?
&ns'er: 7P&CE=(nm% for a se?uentia# fi#e 7P&CE=(nm+% for a P.7 'here n m and + are numbers( 5he +
desi$nates ho' many directory b#oc*s to a##ocate(
Question: -hat is the difference bet'een )E;9ENER )E;COP< and REPRO in ).C&07 ut#ity?
&ns'er: )E;9ENER CC 5his is a dataset uti#ity for co+yin$ se?uentia# datasets 'hich +roduces a P.7 or a member
from a se?untia# dataset()E;COP< CC 5his is a dataset uti#ity for co+yin$ one P.7 to another or to mer$e
P.7s(REPRO CC 5his is for co+yin$ se?uentia# datasets( 0ore or #ess same as the )E;9ENER(R&8)
Question: 6o' do you submit 2C/ via a Cobo# +ro$ram?
&ns'er: :se a fi#e 33dd! .. sysout=(Bintrdr%'rite your 2C/ to this fi#e( P# some on try this out(
Question: 6o' to execute a set of 2C/ statements from a CO;O/ +ro$ram
&ns'er: :sin$ EAEC C)C7 7POO/ -R)5E(varCname% EN.CEAEC command(varCname is a CO;O/ host structure
containin$ 2C/ statements(
Question: -hat is the difference betebeen static ca## J .ynamic ca##
&ns'er: )n the case of 7tatic ca## the ca##ed +ro$ram is a stand a#o$ +ro$ram it is an executab#e +ro$ram ( .urin$ run
time 'e can ca## it in our ca##ed +ro$ram( &s about .ynamic ca## the ca##ed +ro$ram is not an executab#e +ro$ram it
can executed thru the ca##ed +ro$ram
Question: -hat is the difference bet'een cata#ou$e +rocedure and )nC7tream +rocedure?
&ns'er: )n 7tream +rocedures are set of 2C/ statements 'ritten bet'een 2O; and EAEC statements start 'ith PROC
and end 'ith PEN. statement(0ain#y used to test cata#o$e +rocedures( Cata#o$ed +rocedure is cata#o$ed on the
+rocedure #ibrary and is ca##ed by s+ecifyin$ the +rocedure name on the EAEC statement(
Question: -hat do you fee# ma*es a $ood +ro$ram?
&ns'er: a +ro$ram that fo##o's a to+ do'n a++roach( )t is a#so one that other +ro$rammers or users can fo##o'
#o$ica##y and is easy to read and understand(
Question: can 'e bro'se or edit the 9.9 dataset if it is a ta+e entry?
&ns'er: No
Question: -hat are the maximum and minimum siGes of any CON5RO/ &RE& (87&0 datasets% ?
&ns'er: 0inimum 7iGe : ! trac*0aximum siGe : ! cy#inder
Question: 6O- 5O 9E5 C:R7OR PO7)5)ON 4RO0 7<75E0 )N C)C7 EN8)RON0EN5 ?
&ns'er: 9E5 )5 4RO0 E);C:RPO7 O
Question: 6o' many +arameters are there to a .)7P statement and 'hat are thier uses(
&ns'er: 5here are three(E% +arameters( Parameter !: current data set dis+osition(ne' shr o#d mod% Parameter 2:
norma# c#ose action for data set (cat#$ *ee+ de#ete% Parameter E:abend action for data set (cat#$ *ee+ de#ete%(
Question: -hat is the error code 7OC@! indicate ?
&ns'er: O+eration exce+tion error 4or e$ a dataset o+en error
Question: -6&5 )7 CO00?
&ns'er: CO00 C 6&/4 -OR. ;)N&R<
Question: -hat is a +rocedure?
&ns'er: & set of +recoded 2C/ that can be modified throu$h the use of +arameters or override cards( Note: Procedures
can be cata#o$ued or instream(
Question: -hat is the difference bet'een s+ecifyin$ .)7P=O/. and .)7P=76R for a dataset?
&ns'er: O/. s+ecifies exc#usive use of a dataset 76R a##o's mu#ti+#e 1obs to concurrent#y access the dataset Note:
-hen u+datin$ a dataset you 'ou#d norma##y use O/.(
Question: -hat are the three basic ty+es of statements in a 1obstream?
&ns'er: 2O;(one +er 1obstream%EAEC(one or more +er 1ob%..(one or more +er 1obste+%
Question: -hat does 7<7)N B indicate?
&ns'er: )nstream data fo##o's this card and is terminated 'hen fo##o'ed by a card containin$ 33 or 3B in co#umns ! and
2(
Question: -hat are three ma1or ty+es of 2C/ statements? -hat are their functions?
&ns'er: 2O; EAEC ..( 2O; C indicates start of 1obstream to the o+eratin$ system and throu$h +arms coded on it
certain detai#s about the 1ob (time re$ion messa$e #eve# 1ob accountin$ data%( EAEC C indicates the start of execution
of a +articu#ar 1ob ste+ be that ste+ a +ro$ram or a +roc(.. C is a data definition 'hich is used to describe the
attributes of a data set (name unit ty+e s+ace dis+osition%(

You might also like