You are on page 1of 52

A program variable coded in an Embedded SQL statement is referred to as?

Ans:Host Variable
Which of the CL command can be used to determine which logical files are
dependent on a specific file?
Ans:DSPDBR
What does D! program "ou to do on a record?
Ans:Insert, Update Delete & File Enquiry.
When are the !ni#ue Constraints e$ecuted?
Ans:During Insert.
When are the %eferential Constraints e$ecuted?
Ans:Insert, Update & Delete.
&ow man" triggers can be associated with a file?
Ans:!"a#i$u$%
Wh" is the Declare cursor statement is used for?
Ans:&o de'ine & na$e t(e )ursor & spe)i'y ro*s to be 'et)(ed.
What do we can do with the Embedded SQL statements?
Ans:+e )an Insert,Update,Delete re)ords, 'et)( re)ords, 'et)( -alues 'ro$ re)ords into
-ariables.
Which CL command is used to trap error messages during program e$ecution?
Ans:"./"S0
Which CL command can be used at program e$ecution to redirect the file named in
an %'( program?
Ans1.VRDBF
What is the length of the variable in the given e$ample?
Ans:D23 V4R !&/a$e% &5PE !62(ar%7 De'ault 89 & 'or De)i$al :;,;
+e )an deter$ine *eat(er a re)ord is in use bye anot(er user *it( t(e (elp o' status )ode
!6S&4&US%. I'
6S&4&US < =:9:> i.e. re)ord already lo)?ed.
&ow to write )'SS% ?
Ans:It @ust si$ilar to any ot(er subroutine.
6PSSR BE0SR
AAAAAA
AAAAAA
AAAAA.
E/DSR
What is 'rocedure ?
Ans:4 pro)edure is t(e set o' sel' )ontained (ig( le-el language state$ents t(at )an
per'or$ a parti)ular tas? and t(en returns to a )aller.
What is 'rocedure 'rotot"pe and 'rocedure *nterface+
Ans:
Pro)edure Prototype
In t(is se)tion *e spe)i'y t(e na$e o' t(e pro)edure along *it( PR.
D PR.2: PR
'rocedure *nterface
It is se)tion *(ere *e de'ine all t(e para$eter *(i)( are re)ei-ing or returning so$e
-alues.
D PR.2: PI ; =
D P4R"4 ; =
D P4R"B ; =
&ow to define a procedure ?
Ans:
First *e (a-e de'ine Pro)edure Prototype along *it( all para$eter. 4nd PR.
D PR.2: PR
&(en de'ine Pro)edure *it( Begin,End
Pro)edure /a$e Begin,End
P PR.2: B E#port
&(en de'ine Pro)edure Inter'a)e along *it( para$eter and PI
D PR.2: PI ; =
D P4R"4 ; =
D P4R"B ; =
De'ine all t(e para$eters as a -ariable to t(e pro)edure
D P4R"4 S ; =
D P4R"B S ; =
In not returnable pro)edure, t(e pro)edure s(ould end *it(
2 PR.2: E
In returnable pro)edure, it s(ould end *it(
2 RE&UR/ P4R"4 B P4R"B
:. De'ine a s(ared a))ess pat(7
&o s(are t(e open data pat( by -arious progra$s in a sa$e @ob.
9. +(at is t(e di''eren)e bet*een array and a $ultiple o))urren)e data stru)ture7
&(e -alues stored in array donCt -ary. In t(e ot(er (and, *e )an store t(e
Di''erent -alues in sa$e -ariables at -arious stages.
8. +(at is 6I/DSR used 'or7
It is spe)ial type o' RP0,E== subroutine, *(i)( is e#e)uted auto$ati)ally
at beginning o' t(e progra$. It is a good pla)e to )ode initialiFes t(e -ariables.
E. Ho* )an you e#e)ute a )o$$and 'ro$ *it(in an RP0 progra$ *it(out )alling a 23P
progra$7
By )alling G2"DEH2 appli)ation progra$ inter'a)e *e )an e#e)ute a 23 )o$$and
*it( in an RP0 progra$.
;. +(at is t(e purpose o' t(e I/J in t(e 'ollo*ing )al)ulation spe)i'i)ation7
2 KE5 2H4I/ FI3E / LL
I' you spe)i'y M/C in ;8rd position, t(e re)ord *ill not be lo)?ed i' you try to read t(e
lo)?ed re)ord. It is a *ay o' a-oiding t(e re)ord lo)?.
. +(i)( o' t(e 'ollo*ing operations does /.& Fero t(e 'ield F3D4 de'ined as E,=7
2 ".VE 6DER.S F3D4
2 DN4DD 6DER.S F3D4
2 DN4DD = F3D4
2 ".VE 6433C=O F3D4
2 SUB F3D4 F3D4
2 ".VE C====O F3D4
2 23E4R F3D4
2 ".VE 6B34/KS F3D4
&(e last instru)tion does /.& Fero t(e 'ield F3D4.
P. Ho* )an you )(e)? 'or a re)ords e#isten)e *it(out )ausing and I,. !2H4I/,RE4D%7
+it( t(e (elp o' File In'or$ation Data Stru)ture, *e )an )(e)? e#isten)e o' re)ords in a
p(ysi)al 'ile. &(e )ode is des)ribed belo*1
In File des)ription )ontinuation line !IPFK%,
KI/FDS R2DS
IR2DS DS
I 6RE2.RD QR2DS
*it( t(e abo-e )ode *e )an )(e)? t(e e#isten)e o' re)ords in a 'ile *it(out )ausing I,.
operation.
>. De'ine *(at a data area is along *it( a brie' e#a$ple o' *(at it $ay be used 'or7
Data area is a storage area to store li$ited in'or$ation.
E#a$ple1 a ne* and unique )usto$er nu$ber is generated *(ene-er a ne* )usto$er is
added to )usto$er $aster 'ile.
Data area ?eeps tra)? o' last re)ord added and add : to it. &(roug( progra$ *e )an
a))ess ne* )usto$er nu$ber.
L. De'ine *(at a data queue is along *it( a brie' e#a$ple o' *(at it $ay be used 'or7
Data queues pro-ides )o$$uni)ation bet*een progra$s by )alling 4PICs GS/DD&4G
and GR2VD&4G along *it( para$eters li?e data queue na$e, library in *(i)( data
queue e#ists, -ariable to store t(e nu$ber o' )(ara)ters to be sent, -ariable to store t(e
in'or$ation to be sent. +e )an send t(e sa$e data queue to t(e $any progra$s.
:=. +(at is t(e purpose o' t(e 'ollo*ing7
I M23.SEDC 2 S&4&=:
I M.PE/C 2 S&4&=9
It is a type o' initialiFing t(e -ariables in INspe). and t(ese are 'urt(er used in 2Nspe).
::. +(at is t(e di''eren)e bet*een UD4&E and t(e syste$ date7
UD4&E supports t*oNdigit year. &(e 'or$at is 6"D5 !""DD55%.
6D4&E !syste$ date% supports 'our digit year. &(e 'or$at is 6"D55 !""DD5555%.
:9. 3ist so$e o' t(e )o$$only used )o$$ands 'or debugging
S&RDB0!'or bat)( @obs%, S&RISDB.
:8. De'ine t(e R2VF )o$$and7
R2VF )o$$and used to re)ei-e t(e re)ords eit(er 'ro$ t(e data base 'ile or de-i)e 'ile.
:E. De'ine t(e purpose o' t(e RSS& 'un)tion7
&o e#tra)t t(e in'or$ation 'ro$ t(e spe)i'ied string.
:;. De'ine t(e purpose o' t(e 624& 'un)tion7
&o )on)atenate t(e t*o strings into a one string.
:. De'ine t(e purpose o' t(e 6B24& 'un)tion7
&o )on)atenate t(e t*o strings by pla)ing a single blan? in a resultant.
:P. Des)ribe t(e di''eren)e bet*een t(e D.+## and D.U## operations7
D.+## 1 I' t(e )ondition be)o$es true, t(en only t(e group o' instru)tions allo*ed
e#e)uting.
D.U## 1 Irrespe)ti-e o' )ondition, it *ill e#e)ute at least one ti$e.
:>. De'ine t(e purpose o' t(e 3E4VE operation7
I' you spe)i'y 3E4VE, t(e )ontrol trans'ers to t(e state$ent belo* t(e E/DD..
:L. De'ine t(e purpose o' t(e I&ER operation7
I' you spe)i'y t(e I&ER, t(e groups o' state$ents are allo*ed to e#e)ute repeatedly.
9=. 3ist t(e steps,)o$$ands ne)essary to a))o$plis( t(e 'ollo*ing1
a. 2opy data 'ro$ t(e 'ile .RDHDR into 'ile .RDHIS&
b. &(e 'ile .RDHIS& $ay or $ay not e#ist
). I' t(e 'ile .RDHDR does e#ist, it $ay or $ay not )ontain data
d. &(e 'ile .RDHIS& $ay or $ay not )ontain data, i' t(e 'ile does )ontain data t(e old
data s(ould be erased
2o$$ands1 a. 2P5F FI3E!.RDHDR% &.FI3E!.RDHIS&%
b. 2P5F FI3E !.RDHDR% &.FI3E !.RDHIS&% 2R&FI3E !65ES%
). 2P5F FI3E !.RDHDR% &.FI3E !.RDHIS&% 64DD
d. 2P5F FI3E !.RDHDR% &.FI3E !.RDHIS&% 6REP342E
What are the three t"pes of ,e"words associated with printer file ?
Ans:File le-el, Re)ord le-el & Field le-el.
Difference between SL%CD-.% and SL-/0C&(
Ans:SF3R2D/BR *ill gi-e t(e RR/ o' t(e First re)ord displayed on t(e s)reen at a
gi-en ti$e.
+(ene-er a re)ord is )(anged on display 'ile. 4n "D& is set ./. I' an indi)ator is
asso)iated *it( S3F/H&2H0 and it is SE&./ t(en RE4D2 *ill read only t(e )(anged
re)ord. 4nd i' t(e indi)ator is not asso)iated and it is seton it RE4D2 reads all t(e
re)ords 'ro$ subN'ile
&ow can see logical file based on which ph"sical file and vice versa
Ans1DSPDBR
&ow can u chec, no of records in a file
Ans:DSPFD
&ow do u compile %'(LE program
Ans:Eit(er t(ru :; or )rtrpg$od
*s module e$ecutable
Ans:/o 5ou need to )reate an RP0 prog to run t(e $odule.
&ow do "ou combine two record formats in %L! ?
Ans:Using 232.
:L.
What are the different commands used in %L! ?
Ans:DR N De'ine Re)ord, 232 N 2(ange 3ine 'or 2ontinuation, 23R N 2(ange 3ine 'or
Re)ord, SD N 2reate Sa$ple Data, VF N Vie* Fields, /P N /e* Page, D2 N De'ine
2onstants, DF N De'ine Fields, 2F N 2entre Fields & SP N Spa)e Fields e-enly.
What is the command used to invo,e %L! ?
Ans:S&RR3U.
What are different record spacing ,e"words in %L! ?
Ans:SKIP4, SKIPB, SP42E4 & SP42EB.
1andator" ,e"words of sub file
Ans:SF3, SF32&3, SF3DSP, SF3SID, SF3P40 are t(e $andatory ?ey *ords
What is procedure?
Ans:4 pro)edure is t(e set o' sel'N)ontained (ig( le-el language state$ents t(at )an
per'or$ a parti)ular tas? and t(en returns to a )aller
What is service program?
Ans:
4 Ser-i)e Progra$ is a )olle)tion o' runnable pro)edures and a-ailable data ite$s easily
a))essible by ot(er I3E progra$s. In $any respe)ts it is si$ilar to a subroutine library
and pro)edure library.
4 ser-i)e progra$ di''ers 'ro$ a progra$ in t*o *ays1
It does not )ontain a progra$ entry pro)edure. &(is $eans t(at you )annot )all a ser-i)e
progra$ using t(e 2433 operation.
4 ser-i)e progra$ is bound into a progra$ or ot(er ser-i)e progra$s using binding by
re'eren)e
What is L23!' opcode?
Ans:3oo?Cs 'or a parti)ular ele$ent o' an array
&ow man" files4 printer files "ou can describe in a %'(
Ans:;= 'iles and > printers
&ow do handle file e$ception5error
Ans16I/FDS ,6PSSR de'ining it in F spe)
Distinguish between terminating a program through SE02- L% and %E0!%-?
Ans:3R )loses all t(e 'iles used in t(e progra$ and RE&UR/ is used to return t(e
)ontrol to t(e parent progra$.
&ow will "ou add a field to ph"sical file alread" containing data?
Ans:+it( 2P5F )o$$and and 6/.2HK & 6DR.P
What are the uses of AC02%64 AC02%7 and %ES!L0 field for the %'(
operation code 'A%1?
Ans:It is add -alue o' F42&.R: to F42&.R9 or )o$pare t(e -alue o' F42&.R 9 *it(
F42&.R:.
&ow will "ou find a string using 'D1?
Ans:By using F/DS&RPD".
&ow will "ou search an arra"?
Ans13.KUP
What are the different t"pes of arra"s?
Ans:Prerunti$e gets populated at t(e ti$e input. Runti$e gets populated at t(e ti$e
e#e)ution.2o$pile ti$e gets populated at t(e ti$e o' )o$pilation.
What is message file?
Ans:It is 'ile *(i)( )ontain $essages )reated by t(e user t(roug( *(i)( a user )an
display o*n $essage *(ile -alidating.
What does DE- do?
Ans:It is used to de'ine a 'ield based on t(e -alue spe)i'ied in F42&.R :.
What are two t"pes of record are used in subfile?
Ans:SUBFI3E RE2.RD F.R"4& and SUBFI3E 2./&R.3 RE2.RD F.R"4&.
What are DDS re#uired for S!.*LE?
Ans:SUBFI3E DISP345 !SF3DSP% SUBFI3E DISP345 2./&R.3 !SF3DSP2&3%
SUBFI3E 23E4R !SF323R% SUBFI3E SIDE !SF3SIDE% SUBFI3E P40E
!SF3P40E%.
What is ELAS0*C and -2- ELAS0*C S!.%*LE?
Ans:+(en sub'ile siFe is greater t(en sub'ile page siFe it is )alled elasti) sub'ile and
*(en sub'ile siFe is equal to sub'ile page siFe it is )alled nonNelasti) sub'ile.
What is SL*-8 and SL%-A?
Ans:SF3I/D stands 'or sub'ile initialiFe. It initialiFed all t(e )(ara)ter 'ield as blan?s and
nu$eri) 'ields as Feros. SF3R/4 stands 'or sub'ile re)ord not a)ti-e !It $eans re)ords
are t(ere in t(e sub'ile but a)ti-e%.
Can "ou displa" a empt" subfile?
Ans:5es by using t(e ?ey*ord SF3I/D and SF3R/4.
Wh" do we use %EADC? What is SL-/0C&(?
Ans1RE4D2 is to read t(ose re)ords *(i)( (a-e )(anged in t(e sub'ile. I' you -alidate a
re)ord in sub'ile on so$e )ondition all t(e in-alid re)ords )an display in re-erse i$age.
&(e 'irst *(i)( (a-e )(anged and $ade -alid and released still displaying in re-erse
i$age. &(e re)ords (a-e read e-en it (as not been )(anged due to SF3/H&2H0.
&ow do "ou read changed records bac,ward in subfile?
Ans:/.& P.SSIB3E.
&ow "ou will find an error which is not in the first page of the subfile without using
%2LLD2W- ,e"?
Ans1By using ?ey*ord SF3R2D/BR.
What is SL%2L9AL?
Ans:By using t(is ?ey*ord you )an tell syste$ to roll on o' re)ords *(en t(e user
presses R.33D.+/ ?ey !For t(is you de'ine a (idden o' E byte%.
&ow "ou will ,now whether "ou are in SLD%2' or SL2LD mode?
Ans:By using t(e ?ey*ord SF3".DE.
&ow "ou get the relative record in a subfile in which cursor is located?
Ans:By using t(e ?ey*ord SF32USRR/ !Sub'ile )ursor relati-e re)ord nu$ber%.
What is QC1DE/C?
Ans:It is used to e#e)ute a single 23 )o$$and *it(in t(e RP0 progra$.
What is 2'-Q%:4 12-1S( commands
Ans1
It is Dyna$i)ally )reation o' a))ess pat(, and it )an (a-e resultant 'ields i.e. i' t(e
e#pression is 4 < B B 2 t(en B and 2 are 'ro$ t(e 'ile *(ile 4 is de'ined in .P/GR5F.
+e )an di-ert t(e output o' )o$$and to an .U&FI3E. 2o$$and asso)iated *it(
.P/GR5F is 2P5FR"GR5F to sa-e t(e output per$anently
It is a 23 )o$$and to $onitor and error,e#)eption $essage so t(at in )ase o' an error a
du$p is a-oided and t(e )ontrol is in progra$. It is also used to $onitor user $essage.
What are the different 2pcodes available in %'( for Database access ?
Ans:RE4D, 2H4I/, +RI&E, UPD4&, DE3E&, SE&33, SE&0&, RE4DE, RE4DP,
REDPE, .PE/, 23.SE, F.R2E, /EH&, U/32K.
&ow can database records be read without loc, ?
Ans:Put S/S in position ;8 o' 2 spe)s.
What does C&EC3 opcode do ?
Ans:&(e )(e)? operation -eri'ies t(at ea)( )(ara)ter in t(e base string !'a)tor 9% is
a$ong t(e T )(ara)ter indi)ated in t(e )o$parator string!'a)tor :%.
*n con;unction with which statements can 2%$$ and A-D$$ conditions be used ?
Ans1D.U##, D.+##, IF##, and +H##.
What does opcode '2S0 do ?
Ans:Puts in'or$ation in I/FDS.
Can "ou have multiple ,e" lists for a single file ?
:es+
What are the different t"pes of arra"s available in %'( ?
Ans:PreNe#e)ution ti$e array.
2o$pile ti$e array.
E#e)ution ti$e array.
Can we define 1ulti<dimensional arra"s in %'( ?
Ans1/o.
What is /220 opcode ?
Ans14dds all t(e ele$ents in a nu$eri) array, and pla)es t(e su$ in t(e result 'ield.
During input operation which indicator position is seton if there is a record loc,?
Ans:3. indi)ator position is seton.
What is the difference between )L*3E and )-A19A% ?
Ans:
63IKE de'ines t(e -ariables as in database.
6/4"V4R is used to de'ine -ariables as data area.
What would be the effect on the field where reverse image4 underline and highlight
displa" attributes are active ?
Ans:&(e result is sa$e as i' you (ad spe)i'ied /D.
What is the purpose of 29%D0A and 29%A0A ,e"words ?
Ans:.VRD&4 ?ey*ord !'ield or re)ord le-el% )an be used to o-erride t(e e#isting data
)ontents o' a 'ield or re)ord already on t(e display.
.VR4&4 ?ey*ord !'ield or re)ord le-el% )an be used to o-erride t(e e#isting display
attributes o' a 'ield or re)ord already on t(e display.
What ,e"word must be used with '%20EC0 ,e"word ?
Ans:.VER345
What is %'( ?
Ans:Report Progra$ 0enerator.
Where will control be passed after the e$ecution of the )'SS% subroutine if the
factor7 of the E-DS% is blan, ?
Ans:2ontrol *ill return to t(e ne#t sequential instru)tion.
What is the ma$imum number of subfiles that can specified in a displa" file ?
Ans1;:9
0he ma$imum number of subfiles that can defined in a %'( program for one
displa" file is === +
Ans:9E
0he ma$imum number of subfiles that can be active for a single file is ==== +
Ans::9
What are the different opcodes used for file operation on a subfile in a %'( pgm?
Ans:RE4D, RE4D2, 2H4I/, UPD4& and +RI&E
&ow will "ou displa" a particular page in subfile ?
Ans:"o-e a -alid relati-e re)ord nu$ber!RR/% in t(e 'ield spe)i'ied using
SF3R2D/BR ?ey*ord in DDS.
Can a single screen format occup" a screen area above and below a subfile format ?
Ans:/ot possible.
What is SL'A( and SLS*8 ?
Ans:
SL'A( : it is an attribute *(i)( spe)i'ies t(e nu$ber o' re)ords t(at )an be displayed
in a s)reen.
SLS*8 : it is an attribute *(i)( spe)i'ies t(e nu$ber o' re)ords )an be stored in t(e
sub'ile.
&ow to pic, up the changed records ever" time in a subfile after the first change
made ?
Ans:Seton SF3/H&2H0 ?ey*ord indi)ator and update t(e sub'ile re)ord.
&ow do "ou specif" the number of records to roll in a subfile ?
Ans:Use SF3R.3V43 ?ey*ord in DDS along *it( t(e nu$ber, *(i)( spe)i'ies t(e
nu$ber o' re)ords to s)roll at a ti$e.
What are the three line t"pes in %L! ?
Ans:Report line, Filler line & Sa$ple line.
What is the function of %L! ?
Ans:&o design & prototype a report.
Ans:3ibrary in 4S,E== is an ob@e)t t(at ser-es as a repository 'or ot(er ob@e)ts.
-ame few *.1 supplied libraries ?
Ans10P3, G&E"P, GUSR&..3, GS5S, GRP0 & G2B3.
What is a librar" list ?
Ans:3ibrary list t(at indi)ates libraries used 'or t(e pro)ess and t(e order in *(i)( it (as
to be
sear)(ed. Syste$ identi'ies it in 63IB3.
&ow man" libraries can be there in a librar" list ?
Ans:&otal E= !:; syste$ and 9; appli)ation%.
DDS N Data Des)ription Spe)i'i)ation.
Sour)e P(ysi)al File )ontains t(e sour)e 'or t(e -arious ob@e)ts )reated. &(is 'ile (as a
spe)i'i) stru)ture.
RP0, 23P, DSPF, PR&F, et).
4Nspe)
U/IGUE, PFI3E, REFF3D
What is the difference between 'h"sical and Logical files ?
Ans:P(ysi)al 'ile )ontains data, *(ere as 3ogi)al 'ile ser-es as a a))ess pat( to database.
What does the ,e"word !-*Q!E mean ?
Ans:Re)ords *it( dupli)ate ?ey -alues are not allo*ed.
What is C24 *24 L*2 in Database environment ?
Ans:&(ese are 'ile le-el ?ey*ords *(i)( are used to a))ess t(e re)ords in t(e order
F2F. 1 First 2(anged First .ut
FIF. 1 First In First .ut
3IF. 1 3ast In Fist .ut
&ow man" record formats can "ou have in a 'h"sical file and in a Logical file ?
Ans1P(ysi)al 'ile )an )ontain only one re)ord 'or$at, 3ogi)al 'ile )an )ontain $ore t(an
one re)ord 'or$at.
What is 1ulti<format logical file ?
Ans:3ogi)al *(i)( uses 'ields 'ro$ t*o or $ore p(ysi)al 'iles.
What is ,e"word '*LE specifies ?
Ans:PFI3E is used de'ine t(e P(ysi)al 'ile being re'eren)ed.
What is a >oin Logical ile4 Can it be used for !pdate ?
Ans:3ogi)al 'ile t(at )o$bines $ore t(an one p(ysi)al 'ile.
Update is not possible t(roug( U3F.
*s it possible to ;oin the same file to itself ?
Ans:5es.
What does SDA stands for ?
Ans:S)reen Design 4id.
What is the s"mbol used for defining a new field in SDA?
Ans:SBS.
What is the s"mbol used for shifting fields in SDA?
Ans1SVS , SWS.
What is the s"mbol used for cop"ing ? moving new field in SDA?
Ans:
2opying 1 SNS & S<<S.
"o-ing 1 SNS & S<S.
What is the s"mbol used to get name ? length of a field in SDA?
Ans:S7S .
6D4&E, 6&I"E.
&ow can a screen field that has changed since the last output operation be
detected ?
Ans:4tta)( t(e "D& attribute to t(e 'ield, to dete)t *(et(er 'ield (as been )(anged as a
result o' user input.
What are the different t"pes of specification available in %'(5@AA ?
Ans:
2ontrol Spe).! H %
File Spe).! F %
E#tension Spe).! E %
3ine )ounter Spe).! 3 %
Input Spe).! I %
2al)ulation Spe).! 2 %
.utput Spe).! . %
*s it necessar" to define all formats ? Which are mandator" and which are
2ptional ?
Ans:/o, all are .ptional.
What is the use of E specification in %'( ?
Ans:E#tension Spe)s des)ribes all re)ord address 'iles, arrays and tables.
*n which specification can a report la"out be defined ?
Ans:. Spe)i'i)ation.
&ow man" files can be defined in specs ?
Ans:4 $a#i$u$ o' ;= 'iles.
Can an inde$ed file be accessed in arrival seQuence in %'( program ?
Ans:5es.
*n which specification Data Structures can be defined?
Ans:I N Spe).
When is a 0A( statement used in %'( ?
Ans:It is used as a 3abel.
Ans:3ibrary in 4S,E== is an ob@e)t t(at ser-es as a repository 'or ot(er ob@e)ts.
-ame few *.1 supplied libraries ?
Ans10P3, G&E"P, GUSR&..3, GS5S, GRP0 & G2B3.
What is a librar" list ?
Ans:3ibrary list t(at indi)ates libraries used 'or t(e pro)ess and t(e order in *(i)( it (as
to be
sear)(ed. Syste$ identi'ies it in 63IB3.
&ow man" libraries can be there in a librar" list ?
Ans:&otal E= !:; syste$ and 9; appli)ation%.
DDS N Data Des)ription Spe)i'i)ation.
Sour)e P(ysi)al File )ontains t(e sour)e 'or t(e -arious ob@e)ts )reated. &(is 'ile (as a
spe)i'i) stru)ture.
RP0, 23P, DSPF, PR&F, et).
4Nspe)
U/IGUE, PFI3E, REFF3D
What is the difference between 'h"sical and Logical files ?
Ans:P(ysi)al 'ile )ontains data, *(ere as 3ogi)al 'ile ser-es as a a))ess pat( to database.
Which are the four ,e"words supported b" 'rogram Status Data Structure?
Ans:6S&4&US, 6P4R", 6R.U&I/E & 6PR.0R4"
Which are the String 1anipulation 2pcodes?
Ans:&ES&/, S24/, 2HE2K, 2HE2KR, SUBS& & 24&
D.7 is a t"pe of Database?
Ans1It is an Integrated RDB"S.
An access path ma" be in which se#uence?
Ans:It )an be in 4rri-al & Keyed sequen)e
0o change constant field defined on %L! screen which field level ,e"word should be
used?
Ans:DF& !De'ault%
Space ? S,ip are which level ,e"words?
Ans:Field & Re)ord
A >oin Logical ile has how man" %ecord formats?
Ans:6
A 1ultiple format Logical ile is also ,nown as?
Ans:Union File
&ow does !nion file maintains %ecord formats?
Ans:: Re)ord 'or$at 'or ea)( PF
%ecords can be %ead5!pdate5Deleted with which file?
Ans:Si$ple 3ogi)al File & P(ysi)al File.
Which t"pe of ob;ect is used in D.75@AA?
Ans16FI3E
What is SQL?
Ans:SG3 is an inter'a)e 'or progra$$ing language.
ile level entr" for a ' can be?
Ans:U/IGUE & FIF.
What is the command to create %?
Ans:2R&PF
>oin Logical ile displa"s data from how man" files?
9 or $ore PFCs
A Quer" can be displa"ed without saving it?
Ans:&rue
Which are the Quer" selection criteria4 which can be given in a Quer"?
Ans:3IS&
0o add a file to the Bile SelectionC option of a Quer"4 the function ,e" to be pressed
is?
Ans:FL
A #uer" can be run in which mode?
Ans:Bat)( & Intera)ti-e
What is the values SQLC2D when there is an error in fetching the records specified
in the select statement?
Ans:<-e -alue
A file cannot have more than 6 uni#ue ,e"?
Ans:False
DLC2.> command is mandator" for removing loc, on an" ob;ect?
Ans:False
What is a >ournal?
Ans:4 Uournal is an ob@e)t used pri$arily to re)ord )(anges to data in a PF.
Which are the D.7 tools to protect *ntegrit" of the database?
Ans:Uournaling & 2o$$it$ent 2ontrol, Re'erential Integrity E$bedded SG3 &
.b@e)t,Re)ord 3o)?s.
&ow would "ou design the process for a nightl"4 high volume chec, producing
process that needs to select onl" records that are flagged to be processed?
Ans: +it( t(e (elp o' .P/GR5F 2lp )o$$and, *e )an sele)t t(e re)ords 'ro$ t(e data
base 'ile. &(e pro)ess in-ol-es 'ollo*ing steps1
Steps1 :. .VRDBF *it( SH4RE !65ES%
9. .P/GR5F
8. 2433 t(e progra$
E. D3&.VR
;. 23.F
&ow would "ou ;oin D separate fields4 a first name4 middle initial and last name
together as 6 field with proper spacing? :ou can describe in either %'( and5or %'(
*LE E*ntegrated Language EnvironmentF
Ans:
".VE SDr. S F/4"E 8
".VE SU.H/S "/4"E E
".VE S+4&S./S 3/4"E
F/4"E 24& "/4"E1 : V4R: >
V4R: 24& 3/4"E1: V4R9 :;
DSP35 V4R9
".VE 6./ 6I/3R
When '(1A calls '(1. for the first time '(1. e$ecutes the )*-8S%+ '(1.
uses the %E0%- operation to return to '(1A+ When '(1A call '(1. the second
time is the )*-8S% e$ecuted?
Ans:I' you spe)i'y RE&R/ in )alled progra$, t(e 6I/DSR *ill not e#e)ute again.
S(o* 9 *ays to )on-ert a date 'ro$ 55""DD to ""DD55 !"U3& operation not
a))eptable%
:% 2V&D4& D4&E!% R&/V4R! % FR."F"&! % &.F"&! %
Sour)e )ode is required to )on-ert 'ro$ one date 'or$at to anot(er date 'or$at.
&(e sour)e )ode in 23P is gi-en belo*1
P0"
D23 V4R!&V4R:% 3E/0&H!% &5PE!62H4R% V43UE!S55""DDS%
D23 V4R!&R2VD% 3E/0&H!% &5PE!62H4R%
D23 V4R!&V4R9% 3E/0&H!E% &5PE!62H4R%
D23 V4R!&V4R8% 3E/0&H!9% &5PE!62H4R%
2H0V4R V4R!&V4R9% V43UE!RSS&!&V4R: 8 E%%
2H0V4R V4R!&V4R8% V43UE!RSS&!&V4R: : 9%%
2H0V4R V4R!&R2VD% V43UE!&V4R9 624& &V4R8%
S/D"S0 "S0!&R2VD% &.USR!6USRPRF%
E/DP0"
Define the purpose of actor 6 the 2peration Code and )*-6G in following code
&* L2 EQ
C ):1D 0estEDF ""mmddDate 6G
Ans:I' t(e 'a)tor : -alue $at)(es *it( 'a)tor9 -alue, t(e indi)ator spe)i'ied in EG )o$es
6./.
Describe the function of SE0LL operation in %'( language?
Ans:&(e SE&33 operation positions a 'ile at t(e ne#t re)ord *it( a ?ey or relati-e re)ord
nu$ber t(at is greater t(an or equal to ?ey or relati-e re)ord nu$ber spe)i'ied in 'a)tor:.
Describe the function of SE0(0 operation in %'( language?
Ans:&(e SE&0& operation positions a 'ile at t(e ne#t re)ord *it( a ?ey or relati-e re)ord
nu$ber t(at is greater t(an ?ey or relati-e re)ord nu$ber spe)i'ied in 'a)tor :.
What is the purpose of Level Chec, parameter in a 'h"sical file?
Ans:Spe)i'ies *(et(er t(e le-el identi'iers o' t(e re)ord 'or$ats in t(e p(ysi)al 'ile are
)(e)?ed *(en t(e 'ile is opened by t(e progra$.
Define a >ob Queue?
Ans:Uob queues are queues o' bat)( @obs *aiting to be pro)essed.
Define a 2utput Queue?
Ans:.utput queues are queues o' @obs *aiting to be printed.
What is the function of C':S'L command?
Ans:It )opies t(e spooled 'ile to t(e data base 'ile.
What is the function of C': command?
Ans1&o )opy t(e data 'ro$ t(e one 'ile to anot(er.
What is the function of C%0D!'2.> command?
Ans:&o )reate t(e repli)a 'ro$ t(e original ob@e)t.
Define Subs"stem?
Ans:Subsyste$ is not(ing but it pro-ides spe)ialiFed en-iron$ent to )o$plete t(e
e#e)ution o' @obs.
What are different t"pes of Substems?
Ans:GB4&2H, GI/&ER, GSP3, G2"/, G2&3, GB4SE.
Define a .atch >ob?
Ans:
6 4 user request t(e @ob.
6 &(e @ob is )reated !@ob na$e is assigned, @ob attributes are allo)ated%
6 &(e @ob is pla)ed on a @ob queue
6 &(e sub syste$ GB4&2H ta?es t(e @ob 'ro$ @ob queue and starts it.
6 .utput generated by t(e bat)( @ob is pla)ed on an output queue.
6 &(e spool sub syste$ prints t(e output on t(e output queue.
Describe about Quer"5@AA?
Ans:Guery,E== is a li)ensed progra$ t(at uses a query to analyFe and sele)t t(e
in'or$ation )ontained in t(e data base 'iles and )reate a query report.
4 query report )an be1
6 displayed on a *or?station !s)reen%
6 printed
6 stored in anot(er database 'ile.
What is the CL' command to access a Quer"5@AA?
Ans:+RKGR5
What is the purpose of 2verrides?
Ans:&(e basi) purpose o' .-errides is to te$porarily )(ange t(e attributes o' a 'ile. So
you donSt (a-e to )reate per$anent 'iles 'or e-ery )o$bination o' attributes your
appli)ation $ig(t need. .-errides gi-es you t(e 'le#ibility to use e#isting $odel 'iles and
dyna$i)ally )(ange t(eir attributes.
Define Data Structure?
Ans:Data stru)tures are spe)i'ied in t(e Input spe)i'i)ations o' an RP0,E== progra$ to
de'ine an area in storage and layouts o' related sub 'ields.
What is the purpose of Data structure?
Ans:
6 Di-ide a 'ield in to sub 'ields
6 2(ange t(e 'or$at o' a 'ield
6 0roup nonN)ontiguous data in a )ontiguous 'or$at
6 De'ine an area o' storage in $ore t(an one 'or$at
6 De'ine "ultiple o))urren)es o' data stru)tures.
List and e$plain the different t"pe of data structures?
Ans:
) Data area data structure
+(en t(e data area is de'ined in an RP0,E== progra$ as a data area data stru)ture, its
data is i$pli)itly retrie-ed 'or pro)essing and *ritten ba)? at t(e end o' t(e progra$. In
t(e data area data stru)ture, letter XUX $ust be entered to de'ine t(e data stru)ture as a
data area data stru)ture.
) ile information data structure
4 'ile in'or$ation data stru)ture pro-ides e#)eption,error in'or$ation t(at $ay be
o))urred *(en pro)essing a 'ile during progra$ e#e)ution. &(is type o' data stru)ture
)ontains pre de'ined sub 'ields t(at identi'y
6 &(e na$e o' t(e 'ile 'or *(i)( t(e error o))urred
6 &(e re)ord pro)essed *(en t(e error o))urred
6 &(e operation being pro)essed *(en t(e error o))urred
6 &(e status )ode nu$ber
6 &(e RP0,E== routine in *(i)( t(e error o))urred.
E#)eption errors $ay be )ontrolled by testing 'or an error )ode in t(e 6S&4&US 'ield
*(i)( is in)luded in a 'ile in'or$ation data stru)ture. Spe)i'i)ally, ?ey*ords in)luding
6FI3E, 6RE2.RD, 6.P2.DE, 6S&4&US, 6R.U&I/E pro-ide t(e pre-iously na$ed
in'or$ation.
) 'rogram status data structure
Progra$ status data stru)ture (o*e-er identity e#)eption,errors t(at are generated in t(e
progra$ by RP0,E== operations and not by a 'ile. /ote t(at any )ode greater t(an ===LL
is 'lagged as an e#)eption,error. Four ?ey*ords N 6S&4&US, 6R.U&I/E, 6PR.0R4",
6P4R"S are supported by a progra$ status data stru)ture.
What is the purpose of D:-SL0 ,e"word?
Ans:&(is is a 'ile le-el ?ey*ord used in a logi)al 'ile. I' you spe)i'y t(is in a 'ile le-el,
t(e syste$ doesnSt per'or$ re)ord sele)tion until t(e progra$ reads 'ile. &(en on t(e
Sele)t,.$it )riteria, it sele)ts t(e re)ords 'ro$ t(e spe)i'ied 'ile.
When would "ou prefer logical file than 2'-Q%:?
Ans:&(e p(ysi)al 'ile you are *or?ing *it( -ery large, )reating and using a logi)al 'ile
*ill allo* an appli)ation to per'or$ 'aster t(an using an open query 'ile. Sin)e a))ess
pat(s )reated by open query 'iles are te$porary, appli)ations t(at use an a))ess pat(
'requently *ill be $ore e''i)ient using a logi)al 'ile, sin)e t(e a))ess pat( *ill not (a-e to
be rebuilt e-ery ti$e t(e 'ile is open.
hat is the difference between SLCL% and SL*-8?
Ans:SF323R 1 It )lears t(e sub'ile. SF3I/D 1 First it )lears t(e sub'ile and initiliaFing
t(e nu$eri) -ariables *it( Feros and alp(anu$eri) -ariables *it( )(ara)ters.
Define the purpose5use for SL%-A?
Ans:Using t(is,
*e )an $a?e spe)i'ied sub'ile re)ord 'or$at ina)ti-e.
What is the purpose of the following
* !DS
* 6 HA2%DE%I
* J KAL*-EI
Ans:&(e purpose is to de'ine t(e -ariables in INSpe) and t(ese are 'urt(er used in 2Nspe).
+(ere as MUC indi)ates data area data stru)ture7 &(e abo-e )ode is used to update t(e data
area -alue t(roug( t(e progra$. &(e letter XUX indi)ates t(at t(e de'ined data stru)ture is
a data area data stru)ture.
What is the purpose of the following?
A CS%L2C E6%2W 6C2LF
Ans:Using t(is re)ord le-el ?ey*ord, you )an spe)i'y )ursor lo)ation on an output
operation to t(e re)ord 'or$at you are de'ining. &(e progra$ sends output a'ter setting
t(e )ursor lo)ation.
Define what the operation will do4 the purpose of the result field and the purpose of
)*-HH?
&* L2 EQ
C CALL LC90DA0L D0'%1 HH
Ans:&(e abo-e state$ent )auses, )all t(e progra$ and pass t(e para$eter.
Define each of the following operation codes
a+ %EAD 0o read the records se#uentiall"+
b+ %EADE 0o read the e#ual ,e" records
c+ %EAD' 0o read the previous records
d+ %EADC 0o read the records from the wor,station file ESubfileF+
e+ %EDE' 0o read the e#ual ,e" previous records+
Define the purpose of the following code E*f "ou ,now4 how would this be written in
%'( *LEF
&* L2 EQ
C )*-HH D2!EQ )2
C 3E:6 C&A*- *LEA KA HH
C HH CALL '(16 '%1
C E-DD2
Ans:+(ene-er t(e indi)ator 6I/ be)o$es 6.FF, t(e )ontrol trans'ers a'ter E/DD.
state$ent. .t(er*ise, it reads t(e re)ords 'ro$ t(e data base 'ile based on indi)ator
spe)i'ied on HI position. I' t(e spe)i'ied indi)ator on 3. position be)o$es 6.FF, t(en
only 2433 state$ent *ill e#e)ute.
&ow do "ou set the ,e"words SLS*8 and SL'A( if "ou want the subfile to
d"namicall" e$pand?
Ans1SF3SID W SF3P40.
When would "ou use or not use this approach?
Ans:It is t(e $ost desirable $et(od in building a real ti$e appli)ations. +e )an use at all
t(e ti$es.
&ow can "ou detect and handle a record loc, situation?
Ans:I' you try to read t(e lo)?ed re)ord, *e )an get syste$ de'ined $essage i. e. , t(e
progra$ *ill ended abnor$ally. +it( t(e (elp o' File In'or$ation Data Stru)ture *e )an
(andle re)ord lo)? situation. 0enerally it *ill (appen, *(en t(e sa$e 'ile o' type X UX
used in di''erent progra$s.
&ow can "ou detect overflow for a print program that prints multiple lines per
c"cle?
Ans:5ou spe)i'y t(e indi)ators .4 t(roug( .0 and .V in 88 N 8E )olu$ns in a printer
'ile. &(is indi)ator auto$ati)ally set on *(ene-er o-er'lo* o))urs on a type o' page.
Define a shared access path?
Ans:&o s(are t(e open data pat( by -arious progra$s in a sa$e @ob.
What is the difference between arra" and a multiple occurrence data structure?
Ans:&(e -alues stored in array donCt -ary. In t(e ot(er (and, *e )an store t(e
Di''erent -alues in sa$e -ariables at -arious stages.
What is )*-8S% used for?
Ans:It is spe)ial type o' RP0,E== subroutine, *(i)( is e#e)uted auto$ati)ally
at beginning o' t(e progra$. It is a good pla)e to )ode initialiFes t(e -ariables.
&ow can "ou e$ecute a command from within an %'( program without calling a
CL' program?
Ans:By )alling G2"DEH2 appli)ation progra$ inter'a)e *e )an e#e)ute a 23
)o$$and *it( in an RP0 progra$.
What is the purpose of the M-M in the following calculation specification?
Ans:2 KE5 2H4I/ FI3E / LL.I' you spe)i'y S/S in ;8rd position, t(e re)ord *ill not be
lo)?ed i' you try to read t(e lo)?ed re)ord. It is a *ay o' a-oiding t(e re)ord lo)?.
Define what a data area is along with a brief e$ample of what it ma" be used for?
Ans:Data area is a storage area to store li$ited in'or$ation.
E#a$ple1 a ne* and unique )usto$er nu$ber is generated *(ene-er a ne* )usto$er is
added to )usto$er $aster 'ile. Data area ?eeps tra)? o' last re)ord added and add : to it.
&(roug( progra$ *e )an a))ess ne* )usto$er nu$ber.
Define what a data #ueue is along with a brief e$ample of what it ma" be used for?
Ans:Data queues pro-ides )o$$uni)ation bet*een progra$s by )alling 4PISs
GS/DD&4G and GR2VD&4G along *it( para$eters li?e data queue na$e, library in
*(i)( data queue e#ists, -ariable to store t(e nu$ber o' )(ara)ters to be sent, -ariable to
store t(e in'or$ation to be sent. +e )an send t(e sa$e data queue to t(e $any progra$s.
What is the purpose of the following?
* LCL2SEDL C S0A0A6
* L2'E-L C S0A0A7
Ans:It is a type o' initialiFing t(e -ariables in INspe). and t(ese are 'urt(er used in 2Nspe).
Describe the difference between the D2W$$ and D2!$$ operations?
Ans:D.+## 1 I' t(e )ondition be)o$es true, t(en only t(e group o' instru)tions allo*ed
e#e)uting.
D.U## 1 Irrespe)ti-e o' )ondition, it *ill e#e)ute at least one ti$e.
List the steps5commands necessar" to accomplish the following:
a+ Cop" data from the file 2%D&D% into file 2%D&*S0
b+ 0he file 2%D&*S0 ma" or ma" not e$ist
c+ *f the file 2%D&D% does e$ist4 it ma" or ma" not contain data
d+ 0he file 2%D&*S0 ma" or ma" not contain data4 if the file does contain data the
old data should be erased
Ans:2o$$ands are as 'ollo*s
a. 2P5F FI3E!.RDHDR% &.FI3E!.RDHIS&%
b. 2P5F FI3E !.RDHDR% &.FI3E !.RDHIS&% 2R&FI3E !65ES%
). 2P5F FI3E !.RDHDR% &.FI3E !.RDHIS&% 64DD
d. 2P5F FI3E !.RDHDR% &.FI3E !.RDHIS&% 6REP342E
What is the purpose of the following?
2%D&D%6 * E 3 D*S3
2%D&D% 3%E-A1E2%D&D%6
Ans:In order to rena$e t(e re)ord 'or$at o' a data base 'ile in a progra$,
*e )an use t(e abo-e steps. Purpose o' rena$ing is1 I' t(e re)ord 'or$at na$e is si$ilar
in t*o 'iles and i' bot( are used in a sa$e progra$, t(e progra$ *ill not )o$pile. Hen)e
*e (a-e to rena$e eit(er o' t(e 'ile.
What is the purpose of the following
Ans:2,2.P5 GRP0SR2,.RDERR
During t(e )o$pilation t(e sour)e )ode o' .RDERR )opy boo? is )opied into t(e
e#isting progra$. +(ere as ,2.P5 is )o$piler dire)ti-e state$ent.
What is the purpose of the following
Ans:F.RDHDR: 2F E +.RKS&/
Y9SF/ SFI3E F"&9
&(e abo-e line indi)ates t(at, Y9SF/ is a relati-e re)ord nu$ber and F"&9 is na$e o'
t(e sub'ile re)ord 'or$at.
&ow can "ou chec, for a records e$istence without causing and *52
EC&A*-5%EADF?
Ans:+it( t(e (elp o' File In'or$ation Data Stru)ture, *e )an )(e)? e#isten)e o' re)ords
in a p(ysi)al 'ile. &(e )ode is des)ribed belo*1 In File des)ription )ontinuation line
!IPFK%, KI/FDS R2DS IR2DS DS I 6RE2.RD QR2DS *it( t(e abo-e )ode *e )an
)(e)? t(e e#isten)e o' re)ords in a 'ile *it(out )ausing I,. operation.
What is Alternate 0able?
Ans:RP0 tables stores in'or$ation in : )olu$n. &o store in'or$ation in $ultiple
)olu$ns, it uses t(e )on)ept o' 4lternate &able.
What is an Arra"?
Ans:4rray is a )olle)tion o' data, t(e data ele$ents $ust be o' sa$e 3engt( and sa$e
type.
0he Qualified name for an ob;ect 2%D' residing in a librar" 0%A*-*-( is?
Ans:&R4I/I/0,.RDPF
0he function ,e" to start SE! session through program development manager is?
Ans:F
0he 1ember t"pe for an %'( ? CL program which SE! supports is?
Ans:RP0 & 23P
'rinted output items placed in an output #ueue are ,nown as?
Ans:Spool Files.
When a spooled file is created4 it is placed into an?
Ans:.U&GUEUE
0he command to displa" a list of spooled files?
Ans:+RKSP3F
Change in the e$ternall" described file does not re#uire recompilation of the
program?
Ans:False
Command to displa" current librar" is?
Ans:DSP2UR3IB
A ' can have how man" record formats?
Ans:.nly one
Which one of the following has the highest priorit" Librar" on top of the librar" list4
Librar" Q('L4 Librar" on the bottom of the librar" list ? Current librar"?
Ans:2urrent library
While designing the screen user wants to add file level ,e"words then which
function ,e" is pressed?
Ans:F:E
While designing the report using %L! user wants to add record level ,e"words
which function ,e" is pressed?
Ans:F:>
*f user wants to add one field on the report then which function ,e" is pressed?
Ans:F::
*f user wants to center the compan" name on his report then which command will
be used?
Ans:2F !2enter Field%
SE! shows prompt5s"nta$ chec,ing according to?
Ans:"e$ber &ype
*t is possible to run Quer" using %!-Q%: command?
Ans:5ES
!sing Quer" it is possible to create level brea, report?
Ans:5ES
!sing D! user can do which operation?
Ans:4dd, Update & Sele)t 'ields
What is the difference between !'DD0A to ' ? updating using D!?
Ans:Bot( are sa$e, only di''eren)e is DFU progra$ allo*s you to add & update sele)ted
'ields.
Which function ,e" should be pressed to define hidden field while "ou are wor,ing
with SDA?
Ans:FE
Which function ,e" should be pressed to watch all string defined on SDA screen?
Ans:F9=
While designing the screen using SDA4 which function ,e" should be pressed to get
the field from the %?
Ans:F:=.
rom W%31.%'D1 screen "ou have to modif" e$isting member<using SDA which
option do "ou select?
Ans1:P.
Write s"stem defined function used to place s"stem name on the screen?
Ans16S5S/4"E
While designing screen D function ,e" is ,ept common for all record formats on
which level should it be defined?
Ans1File le-el
Write down mandator" ,e"words used when defining a subfile?
Ans1SF3, SF3DSP, SF3SID, SF32&3 & SF3P40
*f user wants to change the length of the numeric field defined in the report then
which combination of the ,e"s will be used?
Ans1F98 & F:=
What is the difference between S3*'. E7F ? S'ACE. E7F?
Ans1SKIPB !9% s?ips : page & on t(e ne#t page a'ter s?ipping 9 lines spa)e print ne#t
*(ile SP42EB
!9% s?ips 9 lines spa)e be'ore printing.
%L!: *f user wants to define new numeric field on record format then which line
command will be used?
Ans:VF
1a$imum report length is 6D74 if user is designing a report using %L!?
Ans:F43SE !"a#i$u$ is 8P>%
What is full form for DDS?
Ans1Data Des)ription Spe)i'i)ation
What are members?
Ans1 "e$bers are separate entities *it(in a database 'ile & t(ey are )o$ponents o'
4s,E== ob@e)t.
What if %'(4 when ? who invented it?
Ans1Report Progra$ 0enerator is IB" introdu)ed a Hig( 3e-el 3anguage in :L=.
or4 which purpose is & Specs used?
Ans1+riting (eader in'or$ation, date separator, )urren)y sy$bol et).
What is the siNe of the filename in %'(?
Ans1> 2(ara)ters !"a#.%
Which are the different ile 0"pes in %'(?
Ans1I !Input%, . !.utput%, U !Update% & 2 !2o$bine%.
What are the different ile Designation 0"pes in %'(?
Ans:P !Pri$ary% & F !Fully Pro)edural%
WhatCs the use of ile Designation in %'(?
Ans1It re'ers to t(e *ay progra$ *ill a))ess or retrie-e t(e data 'ro$ t(e 'ile.
What are the different ile ormat 0"pes in %'(?
Ans1F !Fi#ed 3engt(% & E !E#ternally Des)ribed%
What is the use of ile ormat in %'(?
Ans1It tells to t(e progra$ t(at t(e re)ords are *it(in t(e progra$ !F% or outside t(e
progra$ !E%.
What is L Specs for?
Ans1&o tell lengt( o' page & nu$ber o' lines to be printed on a page.
What is * Specs for?
Ans:&o des)ribe t(e re)ords *it(in Progra$ des)ribed 'ile, 'ields, )onstants, di-ide 'ields
into sub 'ields & to 'or$ a group o'
'ields.
&ow man" ma$imum spaces could be given in 2 Specs?
Ans18
Which are Control .rea, Logic indicators?
Ans13: Z 3L.
What are Data Structures?
Ans:Data Stru)tures de'ine an a storage & layout o' 'ields *it(in t(e de'ined stru)ture.
&ow man" triggers can be associated with a single '?
Ans: !$a#%
Can the ob;ects stored in the product librar" be modified?
Ans:/o.
&ow man" t"pes of ob;ects are there on As5@AA?
Ans:>=
&ow is data stored in 'Cs?
Ans:In 'i#ed lengt( re)ords.
(ive an e$ample of DE- opcode?
Ans163IKE DEF/ E/4"E YE/4"E !/o* t(e YE/4"E (as all t(e attributes sa$e
li?e E/4"E%
What is D.1S?
Ans14 DB"S is a so't*are syste$ t(at )ontrols t(e )reation, organiFation &
$odi'i)ation o' a database & a))ess to t(e date stored *it(in it.
&ow can we ,now the triggers associated with the '?
Ans:DSPFD *it( para$eter &5PE !6&R0%
&ow can we add ? remove trigger to a '?
Ans:4DDPF&R0 & R"VPF&R0
What is an 2utput Queue?
Ans:&(ey are t(e (olding areas t(at store printed output generated 'ro$ Bat)( progra$s
or Intera)ti-e appli)ations.
What does print writer do?
Ans:It is a syste$ @ob t(at sele)ts 'iles 'ro$ t(e output queue & prints &(e$ on a printer.
It pro-ides t(e inter'a)e bet*een
output queueCs Spooled 'iles & t(e printer.
What are the 7 t"pes of lines on 2 Specs?
Ans1Re)ord Identi'i)ation 3ine & Field Identi'i)ation 3ine.
&ow can we add ? remove trigger to a '?
Ans:4DDPF&R0 & R"VPF&R0
What is an 2utput Queue?
Ans:&(ey are t(e (olding areas t(at store printed output generated 'ro$ Bat)( progra$s
or Intera)ti-e appli)ations.
What does print writer do?
Ans1It is a syste$ @ob t(at sele)ts 'iles 'ro$ t(e output queue & prints &(e$ on a printer.
It pro-ides t(e inter'a)e bet*een
output queueCs Spooled 'iles & t(e printer.
Can a Subroutine contain another Subroutine?
Ans:/o.
Does the SE0LL ? SE0(0 retrieve the record?
Ans:/o, t(ey si$ply position to t(e re)ord.
What is a table?
Ans:4 table is )olle)tion o' data ele$ents in one )olu$n, data ele$ents "ust be o' sa$e
type and sa$e lengt(.
What is a Compile 0ime 0able?
Ans1+e )an (ard )ode data *it(in t(e progra$ is said to be 2o$pile &i$e &able.
What is a %un 0ime 0able?
Ans:Data 'ro$ a separate dis? 'ile is loaded into a table ea)( ti$e t(e Progra$ runs.
(ive the 0able definition?
Ans:&4B"& : :9 9 4 +(ere : < /u$ber o' entries per re)ord :9 < &otal nu$ber o'
entries 9 < 3engt( o' ea)( entry 4 < 4s)ending
Sequene
*f the data is li,el" to change over a period of time ? 1oreover data is large than
which t"pe of table is preferred?
Ans:2o$pile &i$e &able.
What does the members in a Source 'h"sical ile contain?
Ans:Sour)e state$ents 'or a progra$.
0he members in L contain?
Ans:4))ess Pat(.
0he members in a ' contain data? E0rue5alseF
Ans:&rue
What is the command to view the librar" list?
Ans:DSP3IB3
What is the command to create '?
Ans:2R&PF
0he L is associated with how man" 'Cs?
Ans:4t least one PF at a ti$e.
fference between CALL ? S.1>2.?
Ans:2433 per'or$s intera)ti-ely @ob *(ile SB"U.B per'or$s bat)( @ob.
1a$imum number of %ecords in Displa" ile?
Ans::=9E
What does 9LDC1D3E: means?
Ans:Valid 2o$$and Key.
What is Subroutine in %'(?
Ans:4 subroutine is a group o' state$ents in a progra$ t(at )an be pro)essed se-eral
ti$es in t(at progra$.
Do we have to E$ecute the )*-8S% compulsor"?
Ans1/o, it is a syste$Nde'ined subroutine it is e#e)uted auto$ati)ally.
What is the use of )'SS% in the program?
Ans:+(ene-er t(ere is any type error in t(e progra$ t(e )ontrol straig(t a*ay passes
onto t(is subroutine.
0"pes of 0ables in %'(?
Ans:&(ere are 9 types o' tables in RP0 t(ey are1 N 2o$pile &i$e &ables PreNRunti$e
&ables
What is the error if we donCt get login screen?
Ans:&(ere is so$e proble$ *it( subsyste$.
&ow to run other ;ob when one ;ob is active?
Ans:2(ange t(e priority or rena$e t(e @ob.
!se of Data Structures?
Ans:
[ Di-iding a 'ield into sub 'ields.
[ 2(anging t(e 'or$at o' a 'ield.
[ 0rouping nonN)ontiguous data in a )ontiguous 'or$at.
[ De'ining an area o' storage in $ore t(an : 'or$at.
0"pes of Data Structures?
Ans:
a. File In'or$ation Data Stru)ture.
b. Progra$ Status Data Stru)ture.
). User De'ined Data Stru)ture.
d. "ultiple .))urren)e Data Stru)ture.
e. Date 4rea Data Stru)ture.
What is Subfile?
Ans14 Sub'ile is a te$porary area in $e$ory *(i)( re)ords $ay *ritten to & read 'ro$
a display 'ile de-i)e.
Which is the subs"stem that is alwa"s on till the main power switch is off?
Ans:G2&3
What is the command to shutdown the As5@AA Server?
Ans:P+RD+/S5S & Para$eter 6I""ED.
&ow can we ,now the C'! utiliNation of the server?
Ans:+RK42&U.B !+or? *it( a)ti-e @ob% +RKS5SS&S !+or? *it( syste$ status%
Which are the libraries Es"stemF alwa"s present in the librar" list?
Ans:G&E"P & G0P3
Which users are allowed to manipulate s"stem libraries?
Ans:GSE2.FR & GS5S.PR
What is a >oin Logical ile?
Ans:4 Uoin 3ogi)al File )o$bines in'or$ation 'ro$ t*o or $ore p(ysi)al 'iles into one
re)ord 'or$at. Uoin 3ogi)al Files (a-e
al*ays one re)ord 'or$at.
0"pes of 2b;ect Loc,s ? what the" do?
Ans1&(ere are $ainly 8 types o' lo)?s t(ey are as 'ollo*1 N 6EH23 1 .nly t(e routing
step (olding t(e lo)? )an use t(e
ob@e)t 6EH23RD 1 Routing step )an read,update t(e 'ile ot(er @obs )an only read.
6SHRUPD 1 4ll @obs )an read,update t(e ob@e)t.
&ow do "ou place or remove loc,s on the ob;ects?
Ans:6442.BU & 6D32.BU
Some of the ob;ect t"pes on which loc,s can be allocated?
Ans:Data 4rea, Data Gueue, File, 3ibrary, "essage Gueue, "enu &Progra$.
What is the opcode to release all the loc,s on a particular '?
Ans:U/32K
What is a trigger?
Ans:4 trigger is an a)tion t(at auto$ati)ally o))urs *(ene-er a )(ange Is $ade to a
p(ysi)al 'ile.
What are the t"pes of data areas?
Ans:User de'ined Data 4rea, 3o)al Data 4rea !3D4%, 0roup Data 4rea !0D4%, Progra$
InitialiFation Para$eter !PIP% Data 4rea.
What is LDA?
Ans13D4 is )reated by t(e syste$ 'or ea)( @ob in t(e syste$, in)luding autoNstart @obs,
@obs started on t(e syste$ by a reader, and subsyste$ $onitor @obs.
What is the t"pe4 length of a LDA?
Ans:62H4R, :=9E bytes
What is (DA?
Ans:&(e syste$ )reates a 0D4 *(en an intera)ti-e @ob be)o$es group @obs. .nly one
0D4 )an e#ists 'or group.
&ow can a data area be loc,ed after being updated?
Ans:Using .U& 63.2K
What is the use of Data Queues?
Ans:Data queue is a type o' syste$ ob@e)t t(at you )an )reate. Data Gueues are used in
Progra$ to progra$ )o$$uni)ation.
&ow to create a data #ueues?
Ans1Using 2R&D&4G )o$$and.
What are the valid data t"pes in Data Queue?
Ans12(ar, /u$eri), and 3ogi)al
What are the two t"pes of read performed on data #ueues?
Ans:Read *it( lo)?, and read *it(out lo)?.
&ow do "ou use DE.!( utilit"?
Ans1S&RDB0 progra$Nna$e UPDPR.D!65ES%
What is an authoriNation list?
Ans:4 lists o' t*o or $ore user Ids & t(eir aut(orities 'or syste$ resour)es. &(e syste$
identi'ies it an ob@e)t type 64U&3
&ow do "ou grant authorit"?
Ans:Using 0R&.BU4U& )o$$and
What are the t"pes of ob;ect authorities?
Ans16USE, 62H4/0E, 64DD, 6D3&, 6RE4D, 6UPD, 6433, 6EH23UDE,
6.BUEHIS&, 6.BU"0&, 6.BU.PR
&ow do "ou put ;obs in batch mode?
Ans1SB"U.B
What is the use of 29%D. ?
Ans15ou )an use t(e .-erride *it( Database 'ile !.VRDBF% )o$$and to repla)e t(e
database 'ile na$ed in a 23 progra$ or to )(ange )ertain para$eters o' t(e e#isting
database 'ile.
What is the use of 29%'%0 ?
Ans1.-erride *it( Printer 'ile !.VRPR&F% )o$$and is used to o-erride )ertain
para$eters o' t(e printer 'iles used in t(e progra$ or to repla)e t(e printer 'ile.
&ow to change file attributes such as siNe4 file wait time4 record wait time etc+ 4
permanentl"?
Ans1Using 2H0PF )o$$and
What is the use purpose of C%0C1D?
Ans:&o )reate user de'ined )o$$and.
What is class of service ?
Ans14 set o' lin? and node )(ara)teristi)s asso)iated *it( a session.
&ow to see active ;obs of the s"stem+
Ans:Using +RK42&U.B )o$$and
&ow do "ou detect unused spool storage?
Ans:Using Re)lai$ Spool Storage.
What are the functions of %emote >ob Entr" E%>EF ?
Ans:4llo*s user o' 4S,E== syste$ to sub$it @obs and re)ei-e @obs 'ro$ a (ost syste$.
What is the function of %>E Conversion !tilit"?
Ans1It )on-erts )o$pressed data *ritten to an 4S,E== database 'ile to de)o$pressed data
*ritten to anot(er 4S,E== database, dis?ette, or de-i)e 'ile.
What process the command S.1%>E>2. does?
Ans:Sends RUE input strea$ to (ost syste$
What is ;ournaling ? Commitment Control?
Ans1Uournaling is a 'un)tion *(i)( re)ords t(e )(anges in a 'ile in a @ournal. &(ese re)ord
i$ages are used to re)o-er t(e )(anges in t(e 'ile s(ould t(e syste$ ends abnor$ally.
2o$$it$ent )ontrol is a 'un)tion t(at allo*s you to de'ine and pro)ess a nu$ber o'
)(anges to database 'iles as a single unit !transa)tion%.
What is the purpose of S0%C10C0L command?
Ans:Starts )o$$it$ent )ontrol 'or 'iles t(at are being @ournalled.
What are the s"stem ob;ects re#uired for ;ournalling?
Ans1Uournal re)ei-er, @ournal and PFs to be @ournalled.
What are the different definition levels in Data Description Specifications?
Ans:File le-el, Re)ord le-el, Field le-el, Uoin le-el, Key'ield le-el, Sele)t,.$it le-el.
What the difference between Source 'h"sical ile and 'h"sical ile?
Ans:4 Sour)e P(ysi)al File )ontains t(e sour)e 'or t(e -arious ob@e)ts )reated t(is 'ile
(as spe)i'i) stru)ture. 4 P(ysi)al File )ontains data, and t(e re)ord 'or$at )an be
di''erent 'or di''erent p(ysi)al 'iles.
What is an access path?
Ans1&(e order in *(i)( t(e database 'ields are organiFed 'or pro)essing in t(e progra$.
What are all the different t"pes of access path?
Ans:4rri-al sequen)e a))ess pat(. Keyed sequen)e a))ess pat(.
What is the default value for the number of increment for the ph"sical file?
Ans:&(ree
When does the D0 ,e"word in ' be used?
Ans:&o spe)i'y t(e de'ault -alue it a 'ield.
&ow to create a user defined EgeneralF data area?
Ans:Using 2R&D&44R4 )o$$and
What are the different wa"s to input data into data area?
Ans:2H0D&44R4 !using 23%
Using .U& op)ode in RP0
&ow to retrieve data from data area?
Ans:
Using R&VD&44R4 )o$$and in 23.
Using I/ op)ode in RP0
What is Spool file4 Wh" is it re#uired?
Ans:4 'ile t(at (olds output data to be pro)essed, su)( as in'or$ation *aiting to be
printed.
What is >ob4 What are the attributes of a >ob?
Ans:
4 Uob is a basi) unit o' *or? on 4S,E==.
&(e attributes are1
Uob /u$ber Unique syste$ generated sequential nu$ber
Uob /a$e 4ny user de'ined na$e !"a# := )(ar%
User /a$e +(o initiated t(e @ob.
What is >ob description?
Ans:4 Uob des)ription de'ines an en-iron$ent in *(i)( a bat)( @ob or an intera)ti-e @ob
to be e#e)uted.
What is the difference between *nteractive ? .atch >ob?
Ans:
*nteractive >ob: 4 Uob started 'or a person *(o signon to a *or?station.
.atch >ob : 4 prede'ined group o' pro)essing a)tions sub$itted to t(e syste$ to be
per'or$ed.
What is (roup >ob?
Ans:4 0roup Uob is atta)(ed to one *or?station and a user. &(ere s(ould be an initial
group @ob and it )an be bran)(ed to $any ot(er group @obs. &(e group @obs )an (a-e
di''erent library lists and di''erent output, $essage queues. 0roup Uob is use'ul in
en(an)ing t(e progra$$ers produ)ti-ity. It is as t(oug( logging into t(e sa$e userNid
$any ti$es.
What are the two main attributes4 which govern the e$ecution of a ;ob?
Ans:Run ti$e priority and &i$e sli)e
What is Sub<S"stem?
Ans:SubNSyste$s are spe)i'i) user de'ined partitions o' t(e 2PU *(ere -arious @obs $ay
be e#e)uted. .ne subsyste$ )an (a-e $ore t(an one a)ti-e @ob at a ti$e.
What is a Device file?
Ans:4 de-i)e 'ile )ontains t(e des)ription o' (o* data is to be presented to a progra$
'ro$ a de-i)e or -i)e -ersa. De-i)e 'ile )an be Printer, Dis?, &ape and Re$ote syste$.
What is the ma$imum number of ,e" fields allowed defining in a ph"sical file?
Ans::9=
What is acron"m of %'(?
Ans1Report Progra$ 0enerator
What is the native language of AS5@AA?
Ans:RP0,E==
Wh" %'(5@AA is famous?
Ans:
6 Easy to )ode and analyFe.
6 Supports e#ternally des)ribed 'iles.
What is an *C file?
Ans:4 de-i)e 'ile t(at allo*s a progra$ on t(e syste$ to )o$$uni)ate *it( progra$ in
ot(er syste$.
What is a message file?
Ans1It is a 'ile *(i)( )ontains t(e $essages o' an appli)ation. For e#a$ple all RP0,E==
$essages are stored in a 'ile, all 2.B.3,E== $essages are stored in a 'ile.
What is a ;ob log?
Ans:4 re)ord o' request sub$itted to syste$ be a @ob. &(e $essage related to t(e
requests, and a)tion per'or$ed by t(e syste$ on t(e log. &(e syste$ progra$ $aintains
it.
What is the purpose of 2'-Q%: E2pen Quer" ileF?
Ans:.P/GR5F is used to sele)t )ertain re)ords o' t(e database 'ile based on t(e
GR5S3& !Guery sele)t % )ondition.
&ow to create files d"namicall" without DDS?
Ans:&(roug( .P/GR5F
What command must be e$ecuted before e$ecuting 2'-Q%: command?
Ans1.VRDBF !.-erride Data base 'ile%
What is Data Area?
Ans:Data area is an ob@e)t used to (old data 'or a))ess by any @ob running on t(e syste$.
4 data area )an be lo)?ed to a single user, t(us pre-enting ot(er users 'ro$ pro)essing at
t(e sa$e ti$e.
what is arrival se#uence?
Ans:&(e re)ords *ill be a))essed t(e *ay in *(i)( re)ords are added to p(ysi)al 'ile.
&ow man" specifications are there in %'(5@AA? What are the"?
Ans:&(ere are se-en spe)i'i)ations are e#its in RP0,E==. &(ey are listed belo*1
6 Header Spe)i'i)ation ,6 File Des)ription spe)i'i)ation ,6 E#tension spe)i'i)ation
6 3ine )ounter spe)i'i)ation ,6 Input spe)i'i)ation ,6 2al)ulation spe)i'i)ation ,6 .utput
spe)i'i)ation
When do "ou use <spec+ continuation line ?
Ans:
6 In order to re'er t(e na$ed re)ord 'or$at as a sub'ile re)ord 'or$at in t(e progra$.
6 In order to rena$e t(e re)ord 'or$at o' a database 'ile in a progra$.
6 In order to de'ine a na$ed data stru)ture as a 'ile in'or$ation data stru)ture.
What are the various t"pes of device files?
Ans:Display 'iles, printer 'iles, dis)?et 'iles, tape 'iles et). ,
When do "ou e$plicitl" open files and close files in an %'( program?
Ans:I' you spe)i'y t(e letter S U S at )olu$n P8NPE, you need to be open and )lose 'iles
e#pli)itly in a RP0 progra$.
&ow do "ou ,now that records are loc,ed?
Ans:By using a )o$$and +RK.BU32K.
What is the purpose of *ndicators in %'(?
Ans:In order to )ontrol t(e logi) 'lo*, *e )an use indi)ators in RP0.
&ow do "ou read data area in an %'( program?
Ans:+it( t(e (elp o' SI/S op)ode, *e )an a))ess t(e data area re)ord in to t(e progra$.
What are the different t"pes of Data Areas?
Ans:
&(e di''erent types o' Data 4reas are general data area, lo)al data area, group data area,
pip !progra$ initialiFation para$eter data area% data area.
)(eneral Data Area N It )an be )reated by user i$pli)itely or e#pli)itly
It )an be re'erred by any ot(er @obs.
It )an be asso)iated *it( a library.
It )an be )reated, deleted by t(e user.
) Local Data Area N It )an not be re'erred by any ot(er @ob.
It is auto$ati)ally )reated and deleted by t(e syste$.
It is not asso)iated *it( any library.
)(roup Data Area < It is auto$ati)ally )reated and deleted by t(e syste$
+e )an a))ess t(e group data area -alue t(roug( )lp.
It is $eant 'or group @obs.
)'ip Data Area N It is $eant 'or pre start @obs.
What are various techni#ues to pass parameters from one program to another?
Ans:P3IS&, 2433, &FR2&3
Which single %'( opcode performs both SE0LL and %EADE?
Ans:2H4I/
What is term C!A 4 SAA?
Ans:2o$$on User 4))ess
Syste$ 4ppli)ation 4r)(ite)ture
Wh" is AS5@AA called 2b;ect 2riented 1achine?
Ans:E-eryt(ing on t(e 4S,E== Syste$ t(at )an be stored and retrie-ed is )ontained in t(e
ob@e)t.
What is the version of 2S5@AA that we have?
Ans:VER9 !Version E. = Release 9. =%
What is DD1 ?
Ans:Distribution Data "anage$ent is a 'un)tion o' t(e .S,E== t(at allo*s an appli)ation
progra$ or user on one syste$ to use database 'iles stored on re$ote syste$.
What is an 2b;ect?
Ans:4n ob@e)t is any t(ing t(at e#ists in and o))upies spa)e in storage and on *(i)(
operation )an be per'or$ed.
&ow are the ob;ects stored on AS5@AA?
Ans:4ll ob@e)ts are stored on 4S,E== in a single le-el storage. In t(is $et(od all ob@e)ts
are re'eren)ed by one -irtual address *(i)( is translated in to a p(ysi)al address *(et(er
it is an au#iliary storage or $ain $e$ory.
What is a Librar" in AS5@AA?
Ans:4 library in 4S,E== is an ob@e)t t(at ser-e!a)ts% as a repository 'or ot(er ob@e)ts.
-ame few *.1 supplied libraries?
Ans:G0P3, G&E"P, GS5S, GUSR&..3, G2B3, GRP0
What is librar" list ?
Ans:4 list t(at indi)ates libraries used 'or t(e pro)ess and t(e order in *(i)( it (as to be
sear)(ed Syste$ identi'ies it in 63IB3.
&ow man" libraries can be there in librar" list ?
Ans1&otal E= !:; syste$ and 9; appli)ation%
What is older?
Ans:4 Folder is a na$ed ob@e)t t(at is used as a dire)tory 'or do)u$ents and ot(er
'olders.
Folders )an be 'iled *it( in anot(er 'older.
What is Logical ile?
Ans:4 3ogi)al 'ile is an 4))ess pat( to t(e P(ysi)al File.
&ow can "ou specif" no duplicate ,e"?
Ans:By de'ining t(e unique ?ey.
What is the command to ,now how man" L are related to a '?
Ans:DSPDBR !Display Database Relations(ip%
What is the command to ,now ,e" fields of file?
Ans:DSPFD !FE% 6422P&H!4))ess Pat(%.
What is a >oin Logical ile?
Ans:4 @oin 3ogi)al File )an be built o-er t(e t*o PFCs, *it( t(e PFCs M@oinedC by a
)o$$on ?ey -alue. It is a-ailable 'or read a))ess.
Can a >oin Logical ile be updated?
Ans:/o.
!sing D!4 user will be able to =========== from 'h"sical ile?
Ans:4dd,Update,Sele)ted or all 'ields.
What is the difference between normal !'DD0A to ' and updating using D!
program?
Ans:Bot( are sa$e only di''eren)e is DFU allo*s you to add or )(ange sele)ted 'ields.
What is Librar"?
Ans:4 library is a syste$ ob@e)t t(at ser-es as a dire)tory to ot(er ob@e)ts or )olle)tion o'
ob@e)t
What is Librar" List?
Ans:4 @obCs library list de'ines t(e pat( o' libraries t(at t(e @ob 'ollo*s *(en trying to
lo)ate progra$s, 'iles or ot(er 4s,E== ob@e)ts.
Difference between Source 'h"sical ile ? 'h"sical ile?
Ans:Sour)e P(ysi)al File )ontains $e$bers *(o )ontain sour)e state$ents & P(ysi)al
File )ontains $e$bers, *(i)( )ontain data.
What is the ob;ect t"pe of '4 L4 'rinter file ? Displa" file?
Ans:)File
What are the different methods to access SE!?
Ans: Use t(e Start Sour)e Entry Utility )o$$and !S&RSEU% .ption > 'ro$
S&RP0""/U &(roug( Progra$ De-elop$ent "anager !PD"%
Which are the member t"pes which SE! supports?
Ans:RP0, 23, PF, 3F, PR&F & DSPF.
*n which Specs Arra"s4 0ables ? Constants are defined?
Ans:In I Spe)s.
What is a Spool ile?
Ans:Printed output ite$s pla)ed in an output queue are ?no*n as spooled 'iles.
&ow man" Specs are there in %'( ? Which are the"?
Ans:&(ere are P Spe)s in RP0 t(ey are H, F, E, 3, I, 2 & ..
What is the difference between (202 ? E/S%?
Ans:EHSR is a )onditional bran)(ing *(ile a 0.&. is an un)onditional bran)(ing.
Difference between CA ? C?
Ans:241 N It does not retains t(e -alue into t(e bu''er $e$ory. 2F1 N It retains t(e -alue
into t(e bu''er $e$ory.
What does E/10 does?
Ans:+rite & Read.
What does the 29%D. command do?
Ans:It o-errides t(e PF te$porarily 'or a @ob.
&ow does the %!-Q%: show the output?
Ans:RU/GR5 s(o*s t(e output al*ays in RR/ !Relati-e Re)ord /u$ber% & not in
?eyed sequen)e.
&ow man" printer files ma$imum can be used in single %'( program?
Ans:> be)ause o' t(e o-er'lo* indi)ators .4N.0 & .V.
When "ou are defining a flat file in "our program in Specs which format will "ou
specif"?
Ans:Flat File1 N F !Fi#ed 3engt(% .t(er File1 N E !E#ternally Des)ribed%
Difference between s,ip before ? space before?
Ans:S?ip be'ore lea-es t(e spe)i'ied no. o' lines $o-ing to t(e ne#t page *(ile Spa)e
be'ore lea-es t(e
spe)i'ied no. o' lines on t(at page.
Which indicator is used for %ead?
Ans:EG !Equal to%
&ow man" t"pes of displa" are available on As5@AA for user interaction?
Ans:E &ypes t(ey are Entry, "enu, In'or$ation & 3ist Display.
Which is the 'rimar" Editor of As5@AA? Source Entr" !tilit" ESE!F+
What are the basic features of SE!?
Ans:Pro$pt depending upon type, s(o*s rig(t (and side date & le't (and side t(e line
nu$ber.
Which are the figurative constants used in %'(?
Ans:)DER.,6B34/K, 6DER.S, 6B34/KS, 6HIV43, 63.V43, 6.FF, 6./ & 6433.
What is the s"nta$ for 'L*S0?
Ans16E/&R5 P3IS& P4R"
What are indicators?
Ans:Indi)ators are inbuilt )lass o' -ariables 'or RP0.
What is CA.?
Ans:It )o$pares Fa)tor: *it( Fa)tor9 & i' )ondition is true, )ontrol is trans'erred to
label designated in t(e result 'ield. &(e label
spe)i'ied $ust appear as t(e Fa)tor: o' a &40 operation so$e*(ere in t(e progra$.
Which are the %elational 2perators in %'(?
Ans:0&, 0E, 3&, 3E & EG.
*n B2C Specs what is the opcode for write?
Ans:EH2P&.
What does L23!' does in 0ables ? Arra"s?
Ans:&(e 3.KUP op)ode sear)(es t(e Fa)tor: entry in table or array.
ile Access 2pcodes?
Ans:RE4D, SE&33, SE&0&, RE4DE, RE4DP, RE4DPE 2H4I/, K3IS&, KF3D,
EH2P& & +RI&E.
What is %'( i$ed Logic C"cle?
Ans:4 logi) t(e )o$piler supplies is )alled RP0 Fi#ed 3ogi) 2y)le.
Difference between *nteractive ? .atch >ob?
Ans:Bat)( @ob begins, runs & )ontinues to e#e)ute instru)tions *it(out (u$an
inter-ention or )ontrol *(ile
Intera)ti-e @ob are user dri-en.
&ow can we run a .atch >ob?
Ans:SB"U.B 2o$$and.
&ow to see the C'! usage?
Ans:+RK42&U.B or +RKS5SS&S
While designing the screen4 D function ,e" is ,ept common for all record formats+
2n which level should it be defined?
Ans:File 3e-el
Write down an" two mandator" ,e"words used when defining a subfile?
Ans:SF3DSP, SF3DSP2&3, SF32&3, SF3SID, SF3P40.
While designing the screen user wants to add file level ,e"words4 then which
function ,e" should be pressed?
Ans:F:E.
Which unction ,e" should be pressed to define hidden field while "ou are wor,ing
with SDA?
Ans:FE
Which function ,e" should be pressed to watch all strings defined on the SDA
screen?
Ans:F9=
While designing the screen using SDA4 which function ,e" should be pressed to get
the field from the field reference file?
Ans:F:=
rom wor, with member using 'D1 screen "ou have to modif" e$isting member
using SDA4 which option do "ou select?
Ans: :P
While designing the report using %L!4 user wants to add record level ,e"word then
which function ,e" should be pressed?
Ans:F:>.
*f user wants to add one field on the report then which function ,e" should be
pressed?
Ans:F::.
After getting field reference from reference file selected files will appear at the
bottom of the screen and then which command function will be used to get it on
screen with its label to be left aligned?
Ans: &83
*f user wants to center the compan" name on his report then which line command
will be used?
Ans: 2F.
*f user wants to change the length of the numeric field defined in report then which
combination of ,e"s will be used?
Ans:F98 & F:=.
What is difference between S3*'. E7F ? S'ACE. E7F+
*f user wants to define new numeric field on record format then which line
command will be used?
Ans:VF.
1a$imum report length is 6D74 if user is designing a report using %L!?
Ans:F43SE !8P> "a#%.
0o change constant field defined on %L! screen which field level ,e"word should be
used?
Ans:DF&
Which field level ,e"word should be used to change an" numeric field of length O to
KK+KK+KKKK format?
Ans:ED&+RD !M . . M%
!sing Quer"4 its also possible to create level brea, reports+
Ans:&RUE.
0"pes of Libraries on As5@AA?
Ans:&(ere are 8 types o' libraries on 4s,E== t(ey are Syste$ !6sys%, User !6test% &
Produ)t !6prod%.
0"pe of Source ile ? 'h"sical ile?
Ans:Sour)e File1 N 6PF,SR2 P(ysi)al File1 N 6PF,D&4
WhatCs the use of S0%'D1?
Ans:&o *or? *it( 3ibraries, .b@e)ts, "e$bers & User .ptions.
*n which Specs can ' be made internall"?
Ans:In I Spe)s.
What is the format of As5@AA Commands?
Ans:Verb .b@e)t Guali'ier Verb1 N a)tion .b@e)t1 N on *(i)( a)tion is per'or$ed
Guali'ier1 N identi'ies your @ob
What is e$ternall" described file?
Ans:4 'ile, *(i)( is )reated e#ternally & des)ribed in t(e progra$, is )alled as e#ternal
des)ribed 'ile.
What is Qualified ? !n#ualified path?
Ans:Guali'ied pat( $eans $entioning ob@e)t na$e along *it( library na$e *(ile
Unquali'ied pat( $eans dire)tly *riting t(e ob@e)t na$e.
Which path a good programmer should use?
Ans:Unquali'ied pat(.
&ow man" t"pes of files are available on As5@AA?
Ans:&(ere are 9 types o' 'iles on 4s,E== t(ey are Databases 'iles & De-i)e 'iles.
do "ou set pointers to values GG or ne$t higher or greater?
Ans:SE&0&.
&ow will * e$plicitl" open a file in an %'( program?
Ans:By de'ining U2 in 'ile )ondition and to opening t(e 'ile $ention .PE/ op)ode and
)losing t(e 'ile by $entioning 23.SE in op)ode o' 2 spe).
What is ma$imum siNe of data area?
Ans:LLLL.
&ow to fire a >2.?
Ans1SB"U.B.
&ow man" levels of securit" are there on AS5@AA?
Ans:&(ere are := to ;= le-el o' se)urity on 4S,E==.
&ow to translate field values form lower case to !pper case?
Ans:By using op)ode H34&E.
What are the ma$imum parameters can be passed from one %'( program to
another %'( program?
Ans:9;;
What is the ma$imum length of an 2CC!%?
Ans:LLLL.
What is a subfile?
Ans:Sub'ile is a group o' re)ords *(i)( )an be used 'or !Displaying, 4dding ne* re)ord,
"odi'ying t(e e#isting re)ord, and Deleting t(e
e#isting re)ords%.
What is ma$imum siNe of a subfile?
Ans:LLLL.
&ow do "ou write and read a value Esimilarl" as E/10 of %'(F using a displa"
file in CL?
Ans:S/DR2VF.
&ow do "ou displa" a screen in CL?
Ans:S/DF.
&ow to chec, end of file in CL?
Ans:"onitor t(e $essage ID !2PF=>E%.
Can "ou update a file in CL?
Ans:/..
Can "ou add a record to a ph"sical file through CL?
Ans:/.
What opcode is used for submit ;ob? Wh" it is used?
Ans:SB"U.B op)ode is used and it is used 'or ba)?ground pro)essing.
&ow do "ou monitor message in CL?
Ans:By using $onitor $essage ID1 !"./"S0 "S0ID !2PF====%
E$cept report design what else can be done b" 2 spec?
Ans:+e )an *rite a P(ysi)al File 'ro$ . spe).
What is the full for of CA and C?
Ans:2o$$and 4ttention and 2o$$and Fun)tion.
Difference between W%3!S%>2. and W%3AC0>2.?
Ans:4ll t(e @obs in +RKUSRU.B are seen in)luding 4)ti-e @obs *(ere as in
+RK42&U.B only a)ti-e @obs are seen.
What are the three levels of SDA?
Ans:File le-el, Re)ord le-el, Field le-el.
What is )'SS%?
Ans:It is a syste$ subroutine *(i)( is e#e)uted by de'ault *(en any error o))urs in a
progra$.
&ow man" ma$imum parameters can be passed from on %'( program to another
CL program?
Ans:E=
&ow man" ma$imum arra"s can be used in a single %'( program?
Ans:9==.
&ow man" ma$imum loops can be used in a single %'( program?
Ans::==
&ow man" ma$imum printer files can be used in a single %'( program?
Ans:>
Wh" do we define 129E )2- )*-L%?
Ans:It 'rees t(e $e$ory. 4ll t(e 'ields and para$eters in t(e $e$ory *ill be)o$e blan?.
&ow do "ou shutdown "our *.1 server?
Ans:P+RD+/S5S.
*f "our wor,station does not show login screen what might be the problem?
Ans:Proble$ *it( so$e subsyste$.
:ou have given a ;ob for printing and "ou are not getting the printout what might be
the reason?
Ans:So$e $ore pending @obs $ig(t be t(ere in Uob Gueue.
0here are multiple ;obs for printing in ;ob #ueue and "ou want to print a important
document then what will "ou do?
Ans:2(ange t(e priority or )(ange t(e @ob queue na$e.
What is message subfile?
Ans:"essage sub'ile is spe)ial 'ile )ontains $ultiple $essages ta?en 'ro$ progra$
$essage queue and pla)ed in $essage sub 'ile 'or display on t(e s)reen.
What is the purpose of '!029% E'ut with e$plicit overrideF ,e"word?
Ans:Use t(is re)ordNle-el ?ey*ord to per$it t(e o-erride o' eit(er display 'ile attributes
or data )ontents o' spe)i'i) 'ields *it(in a re)ord displayed on t(e *or? station de-i)e.
What are necessar" ,e"words to code message subfile?
Ans:SF3"S0R2D, SF3"S0KE5, SF3P0"G
What is the difference between SE02- L% and %E0%-?
Ans:I' you spe)i'y SE&./ 3R, all t(e 'iles used in progra$ *ill be )losed.
I' you spe)i'y RE&R/, all t(e 'iles used in progra$ *ill re$ain open.
What is the purpose of 29%D0A E2verride DataF ,e"word?
Ans:Use t(is 'ield le-el ?ey*ord *it( PU&.VR ?ey*ord to o-erride t(e e#isting t(e
data )ontents o' a 'ield already on t(e display.
What is the ma$imum number of record formats in DS'?
Ans::=9E !.ne t(ousand and t*enty 'our%
What is the ma$imum number of fields under a record format of ph"sical file?
Ans:>=== !eig(t t(ousand%
What is the ma$imum number of parameters allowed in %'(?
Ans:9;; !&*o (undred and 'i'ty 'i-e%
What is the ma$imum number of parameters allowed in CL'?
Ans:E8 !Forty t(ree%
What is the ma$imum number of subroutines allowed in %'(?
Ans:9;E !&*o (undred and 'i'ty 'our%
What is the ma$imum number of files allowed in %'(?
Ans:;= !Fi'ty in)luding eig(t printer 'ile%
What is ma$imum number of Arra"s allowed in %'(?
Ans:9;= !&*o (undred and Fi'ty %
Where can "ou specif" an indicator in L23!' operation?
Ans1In SEGS position.
What is a 1ember?
Ans:It is a subset o' data re)ords o' a p(ysi)al 'ile.
What is a 'h"sical file?
Ans:P(ysi)al 'ile not(ing but a table )ontains a only one re)ord 'or$at in *(i)( *e )an
des)ribe t(e 'ield de'initions and des)riptions.
What is a Logical file?
Ans:It is not(ing but a logi)al -ie* pro-ided by t(e p(ysi)al 'ile.
What is >oin Logical file?
Ans:Uoin logi)al 'ile @oins $ore t(an one 'ile. &(e $a#i$u$ o' nu$ber o' 'iles allo*ed
to @oin is 89 !t(irty t*o%.
What are the necessar" ,e"words for the >oin Logical file?
Ans1UDF&V43, UFI3E, U.I/, UF3D, UREF.
What is a -on<;oin logical file?
Ans:It only pro-ides logi)al -ie* based on t(e p(ysi)al 'ile. &(is is also )alled as regular
logi)al 'ile.
What is the necessar" ,e"word for -on<;oin logical file?
Ans:PFI3E !*(i)( is re)ord le-el ?ey*ord%
&ow man" levels are there in a 'h"sical file?
Ans:Four le-els. &(ey are File le-el, Re)ord le-el, Field le-el, Key 'ield le-el.
What is the use of !-*Q!E ,e"word and what level it is defined?
Ans1It *ill a-oid to enter dupli)ate ?ey -alues. +e (a-e to de'ine it in a 'ile le-el.
At what level S42 are defined and what the" will do?
Ans:S, . are to de'ined at ?ey 'ield le-el. &(e purpose Sele)t,.$it logi) is depends on
t(e )riteria !)ondition% gi-en at t(e ?ey 'ield le-el !4t 'un)tion entry% it sele)ts and o$its
t(e re)ords. &(e S,. is allo*ed in 3ogi)al 'ile only.
What is the difference between 'ac,ed decimal and 8oned decimal?
Ans:Pa)?ed de)i$al 1 .ne digit o))upies : byte.
Doned de)i$al 1 .ne digit o))upies 9 bytes.
What is default data t"pe Eif "ou define decimals LALF in 'h"sical file?
Ans:Pa)?ed de)i$al
What is default data t"pe for the fieldsEsub fieldsF defined in data structures in
%'(?
Ans:Doned de)i$al
What is the use of >D09AL in ;oin logical file?
Ans:I' you spe)i'y UDF&V43 at 'ile le-el, e-en t(e pri$ary 'ile re)ord does not $at)(
*it( se)ondary 'ile re)ord, t(e @oin ta?es pla)e.
*s it possible to create a ph"sical file without DDS?
Ans:5es. +it( t(e (elp o' 2R&PF *e )an a)(ie-e t(is. But *e (a-e to gi-e re)ord
lengt(.
What is a 3e"ed ph"sical file?
Ans:De'ining a 'ield as a ?ey in p(ysi)al 'ile. Hen)e *e )an a))ess re)ords t(roug( t(e
?ey 'ield.
What is a composite ,e"?
Ans:De'ining $ore t(an one ?ey as a ?ey 'ield in p(ysi)al 'ile.
When will "ou use 2'E- and CL2SE opcodes in %'( program?
Ans:I' you spe)i'y t(e letter XUX at )olu$ns P8 N PE in a 'ile des)ription spe)i'i)ation
indi)ating t(at user )ontrol on a 'ile. Hen)e *e (a-e to e#pli)itly open and )lose t(e 'ile
in a progra$.
What is difference between full" procedural file and primar" file?
Ans:In pri$ary 'ile t(e re)ords *ill be read and pro)essed 'ro$ begining to end. &(is
order is not )(anged. In 'ully pro)edural 'ile t(e re)ords *ill be read and pro)essed in any
order. &(e logi) 'lo* is )ontrolled by t(e op)odes in RP0 progra$.
What is the difference between e$ternall" described file and program described file?
Ans:&(e 'ield de'initions and des)riptions are de'ined out side o' t(e progra$ in a
e#ternally des)ribed 'ile. &(e 'ield de'initions and des)riptions are de'ined in side t(e
progra$ in a progra$ des)ribed 'ile.
&ow man" primar" files allowed in a program?
Ans:.nly one pri$ary 'ile is allo*ed in progra$.
&ow man" secondar" files allowed in a program?
Ans:"ore t(an one se)ondary 'iles are allo*ed in a progra$.
What is the purpose of %091.%D command?
Ans:In order to a))ess t(e in'or$ation related to $e$ber, *e )an R&V"BRD )o$$and.
Define an *nteractive >ob?
Ans:) 4 user requests a @ob.
6 Uob is )reated and @ob na$e, @ob attributes are assigned.
6 Uob is pla)ed on a @ob queue.
6 &(e sub syste$ GI/&ER ta?es t(e @ob 'ro$ t(e @ob queue and starts pro)essing.
6 &(e output generated by t(e intera)ti-e @ob is pla)ed on t(e output queue
6 &(e spool sub syste$ GSP3 prints t(e output.
&ow can "ou chec, the e$istence of ob;ect in a s"stem?
Ans:
+it( t(e (elp o' 2HK.BU )lp )o$$and, *e )an 'ind e#isten)e o' ob@e)t on t(e syste$.
&(e usage o' )o$$and in )lp is as 'ollo*s1
2HK.BU .BU!UB4==:D&% .BU&5PE!6D&44R4%
"./"S0 "S0ID!2PFL>=:% EHE2!D.%
2R&D&44R4 D&44R4!G0P3,UB4==:D&% &5PE!62H4R% 3E/!% B
V43UE!S=:=:LS% &EH&!S&(e last day t(at (ad @ob a))t.B
data e#tra)tedS%
E/DD.
R&VD&44R4 D&44R4!UB4==:D& 6433% R&/V4R !&FR."D4&E%
&(e e#e)ution o' abo-e steps is listed belo*1
steps
:1 First it )(e)?s t(e data area ob@e)t on t(e syste$.
91 I' t(e data area ob@e)t not 'ound, t(e "./"S0 )o$$and e#e)utes *it(
t(e (elp o' $essage identi'ier, ne#t *e )an dyna$i)ally )reate t(e data area.
8. I' t(e data area ob@e)t 'ound, )ontrol trans'ers to state$ent belo* E/DD..
It is al*ays good 23P progra$$ing approa)( to )(e)? t(e ob@e)t be'ore you
rena$e, delete t(e ob@e)ts on t(e syste$.
What is the purpose of %CD0A Eorce DataF ,e"word?
Ans:Use t(is re)ordNle-el ?ey*ord to i$$ediately display a re)ord 'or$at, *it(out
*aiting 'or t(e ne#t input or output,input operation.
What is the purpose of SL2LD and SLD%2' ,e"words?
Ans:
SF3F.3D1 &o 'old t(e se)ond line o' $ultiple line sub'ile.
SF3DR.P1 &o drop t(e se)ond line o' $ultiple line sub'ile.
What is the function of DS'A0% Edispla" attributesF ,e"word?
Ans:Use t(is 'ield le-el ?ey*ord in display 'ile to spe)i'y one or $ore display attributes
'or t(e 'ield you are de'ining. 5ou )an spe)i'y t(e DSP4&R ?ey*ord $ore t(an on)e 'or
t(e sa$e 'ield, and you )an spe)i'y $ore t(an one attribute 'or t(e sa$e ?ey*ord. &(e
'ollo*ing are -alid attributes1
or All ields
Display ,4ttribute "eaning
B3 Blin?ing 'ield ,HI Hig( Intensity ,RI Re-erse I$age ,2S 2olu$n separator ,/D /on
Display
P2 Position )ursor ,U3 Underline
or *nput<Capable ields 2nl"
PR Prote)t )ontents o' 'ield 'ro$ input ?eying
"D& Set $odi'ied data tag *(en displayed
.ID .perator identi'i)ation
SP Sele)t by lig(t pen
What the purpose of the ,e"words *24 L*24 C2?
Ans:&(ese ?ey*ords are used at 'ile le-el. &(e purpose o' ea)( one is des)ribed belo*1
FIF.1 &(e dupli)ate ?ey re)ords *ill retrie-ed in 'irst in 'irst out order.
3IF.1 &(e dupli)ate ?ey re)ords *ill retrie-ed in last in 'irst out order.
F2F.1 &(e dupli)ate ?ey re)ords *ill retrie-ed in 'irst )(anged 'irst out order.
What is the difference between regular logical file and ;oin logical file?
Ans:Regular logi)al 'ile )ontains $ore t(an one re)ord 'or$at.
Re)ord 'or$at na$e in regular logi)al 'ile s(ould be sa$e based on t(e p(ysi)al 'ile.
Uoin logi)al 'ile )ontains only one re)ord 'or$at.
Re)ord 'or$at na$e in @oin logi)al 'ile s(ould be di''erent.
&(roug( logi)al 'ile *e )an $ade )(anges in p(ysi)al 'ile.
&(roug( @oin logi)al 'ile *e )anSt $ade )(anges in p(ysi)al 'ile.
Distinguish between logical file and ph"sical file?
Ans:P(ysi)al 'ile )ontains only one re)ord 'or$at.
3ogi)al 'ile )ontains $ore t(an one re)ord 'or$at.
P(ysi)al 'ile )ontains a)tual data.
3ogi)al 'ile doesnSt )ontains data but it pro-ides -ie* 'ro$ t(e p(ysi)al 'ile.
What is field reference file?
Ans:Field re'eren)e 'ile is a 'ile, *(i)( )ontains 'ield de'initions and des)riptions, and it
doesnSt (a-e $e$ber. P(ysi)al )ontains data deri-ed by t(e 'ield re'eren)e 'ile.
What is the difference between access path and D"namic select?
Ans:Dyna$i) sele)t o))urs *(ene-er t(e progra$ reads 'ile. But a))ess pat( o))urs
be'ore t(e 'ile is read !but not ne)essarily%. Be)ause a))ess pat( $aintenan)e per'or$ed
on t(e 'ile.
Wh" would "ou prefer 2'-Q%: than logical file?
Ans:&(e $ain di''eren)e is 1 3ogi)al 'ile )reates per$anent ob@e)t on t(e syste$.
.P/GR5F )reates te$porary a))ess pat(.
What is the necessar" ,e"word used in a ph"sical file to refer field definitions from
the field reference file?
Ans:REF *(i)( is a 'ile le-el ?ey*ord is ne)essary to de'ine at 'ile le-el in a p(ysi)al
'ile. &(e synta# is as 'ollo*s1 REF!library na$e,na$e o' t(e 'ield re'eren)e 'ile%
What is purpose of declarative statement DE-?
Ans:Depends on t(e 'a)tor : -alue it *ill do t*o t(ings1
6 I' t(e 'a)tor:is 63IKE t(en DEF/ op)ode de'ines t(e ne* 'ield based on t(e attributes
old 'ield. 6 I' t(e 'a)tor : is 6/4"V4R t(en DEF/ op)odes de'ines t(e 'ield as a data
area.
What is the purpose of SL-/0C&( ,e"word in a subfile?
Ans:+(i)( is a sub'ile re)ord 'or$at ?ey*ord. I' you per'or$ read on t(e sub'ile, t(e
internal indi)ator "D& !$odi'ied data tag% is auto$ati)ally set o'' by t(e syste$. I' you
again per'or$ read on t(e
sa$e re)ords, re)ords *onSt be read. Be)ause internal indi)ator "D& *ould be o''.
Hen)e you s(ould be e#pli)itly set
on t(e "D& by SF3/H&2H0 ?ey*ord.
What is the difference between Arra" and 0able?
Ans:
4rray1 4rray is stored any *(ere in t(e body o' t(e input re)ords.
&able1 &able is stored at t(e begining o' t(e input re)ords.
4rray1 +e )an a))ess all t(e ele$ents in array by spe)i'ying t(e array na$e.
&able1 .nly one table ele$ent )an be a))essed at a ti$e.
4rray1 4rray )an be sear)(ed rando$ly.
&able1 &able )an be sear)(ed )onse)uti-ely.
What are the different t"pes of access paths maintained on the file?
Ans:
I$$ediate1 4ll t(e a))ess pat(s !open and )lose% asso)iated *it( a 'ile *ill be updated
*(ene-er )(anges $ade to a 'ile.
RebuildN only open a))ess pat(s *ill update *(ene-er )(anges $ade to t(e 'ile. Rebuild
ta?es pla)e *(ene-er re$aining a))ess pat(s *ill be open.
Delay 1 Rebuild *ill not ta?es pla)e.
What is the purpose of reorganiNing the ph"sical file i+ e+ 4 %(8'1?
Ans:E-en i' you delete t(e re)ords in a p(ysi)al 'ile t(roug( t(e progra$, still t(e spa)e
used by t(e deleted re)ords not used by t(e ot(er purpose. Hen)e using R0DPF"
)o$$and *e )an )o$press t(e deleted re)ords spa)e.
What is the purpose of C&(' EChange ph"sical fileF command?
Ans:2H0PF )o$$and is used to )(ange t(e attributes o' a p(ysi)al 'ile. 4ttributes li?e
6 "a#i$u$ nu$ber o' $e$bers
6 "e$ber siFe
6 3e-el )(e)? en'or)ed
6 .pen data pat( is s(ared
&ow can "ou identif" End of file in CL' program?
Ans:+it( t(e (elp o' "./"S0 "S0ID!2PF=>E% *e )an identi'y end o' 'ile in )lp
progra$.
What is the difference between production librar" and test librar" ?
Ans:In debug $ode, t(e 'iles e#ists in produ)tion library not allo*ed to update.
In t(e ot(er (and, t(e 'iles e#ists in test library allo*ed to update.
(ive three main purposes of ile specification ?
Ans:&o de'ine 'iles, to des)ribe t(e 'iles, to assign t(e 'iles to spe)i'ied de-i)es.
&ow do "ou specif" page overflow indicator for printer files in %'(?
Ans:Spe)i'y an indi)ator in position 88N8E o' F spe)i'i)ation.
What is a 'rimar" ile?
Ans:It is used in RP0 Progra$ 2y)le to auto$ati)ally read re)ords in a )y)le.
Can a inde$ed file be accessed in arrival se#uence in %'( program?
Ans15es.
What opcode could be used to test an alphanumeric field for all numeric values?
Ans:&ES&/
What opcode will be used to test the None of a character field?
Ans:&ES&D
&ow to read database records without loc,ing them?
Ans:Put S/S in position ;8 o' 2 spe)s.
What does C&EC3 opcode is used?
Ans:&(e )(e)? operation -eri'ies t(at ea)( )(ara)ter in t(e base string !'a)tor 9% is
a$ong t(e )(ara)ter indi)ated in t(e )o$parator string !'a)tor :%.
What does LS%L in columns J<O of C specs mean?
Ans:2al)ulation operation is a part o' RP0 subroutine.
What is SCA- and /LA0E?
Ans:S24/ operation s)ans a )(ara)ter string !base string% )ontained in 'a)tor 9 'or a
substring !)o$pare string % )ontained in 'a)tor :.
H34&E operation translates )(ara)ters in sour)e string !'a)tor 9 % to t(e 'ro$ and to
strings !'a)tor : % and put into t(e result 'ield.
&ow do "ou use commitment control in %'( program ?
Ans:Using 2."I& operation. "a?es all )(anges to t(e 'iles t(at (a-e been spe)i'ied in
output operation sin)e t(e pre-ious 2."I& or t(e begining o' operations under
)o$$it$ent )ontrol!i' t(ere (as been no pre-ious 2."I& or R.3BK operation%.
&ow do "ou use e$ceptional write in C specs?
Ans:Using EH2P& op)ode.
What does the opcode %EE do?
Ans:&(e FREE operation re$o-es a progra$ 'ro$ t(e list o' a)ti-ated progra$s, 'rees
stati) storage and ensures progra$ initialiFation !'irst )y)le pro)essing% t(e ne#t ti$e
progra$ is )alled. It does not )lose 'ile or unlo)? data area.
What does opcode '2S0 do?
Ans:Puts in'or$ation in I/FDS.
What is the ma$imum number of elements in an arra"?
Ans:LLLL
What is a 'rogram Described file in %'(?
Ans:&(e 'ield na$e and lengt( o' t(e 'ields are de'ined *it( in t(e RP0 progra$.
What is e$ternall" described file ?
Ans:4ll in'or$ation about t(e 'ields is spe)i'ied in DDS and t(e RP0 progra$ )an use
t(e$ *it( in t(e progra$.
Can "ou specif" a displa" file to be used in the following modes *nput4 2utput4 or
Combined modes ?
Ans:5es.
What is match field indicator?
Ans:"at)(ing re)ord indi)ator is seton *(en all t(e $at)(ing 'ields in t(e re)ord o' a
se)ondary 'ile $at)(es *it( all t(e $at)(ing 'ields o' a re)ord in a pri$ary 'ile.
What is the length of a variable in %'(?
Ans: 2(ara)ters.
When is a 0A( statement used in %'(?
Ans:It is used as 3abel.
Can we define 1ulti<dimensional arra"s in %'(?
Ans:/o.
What is /220 opcode?
Ans:4dds all t(e ele$ents in a nu$eri) array, and pla)es t(e su$ in t(e result 'ield.
&ow can we sort an arra"?
Ans:By using S.R&4 op)ode.
What is 'rogram Status Data Structure?
Ans:4 Progra$ status DS )an de'ined to $a?e progra$ e#)eption,error in'or$ation
a-ailable to an RP0 progra$.
DS is de'ined as progra$ status DS by an S in position :> o' t(e DS state$ent.
6S&4&US )ontains status )ode.
6R.U&I/E 1 )ontains na$e o' routine in *(i)( t(e e#)eption,error o))urred
6P4R"S 1 )ontains t(e nu$ber para$eters passed to t(is progra$ 'ro$ t(e )alling
progra$.
What is the ma$imum number of times 1ultiple 2ccurrences DS can occur in a
program?
Ans:LLLL
What are all the compiler directive statements?
Ans:5&I&3E, ,SP42E, ,EUE2&, ,2.P5
What is SAA?
Ans:Syste$s 4ppli)ation 4r)(ite)ture !S44% is a )olle)tion o' sele)ted so't*are
inter'a)es, )on-entions, and proto)ols t(at *ill pro-ide a )onsistent 'ra$e*or? a)ross t(e
Syste$,8P=, 4S,E== and PS,9.
During e#e)ution, an RP0,E== progra$ auto$ati)ally 'ollo*s a sequen)e o' operations
'or ea)( re)ord t(at is pro)essed. &(e builtNin progra$ )y)le in)ludes
t(e 'ollo*ing logi)al steps.
:. reading input !RE4D%
9. pro)essing )al)ulations !PR.2ESS%
8. *riting output !+RI&E%
What is the unction of 'D1?
Ans:Produ)ti-ity tool 'or )opying, deleting, s)anning, )(anging & )reating sour)e 'iles.
What is the function of SE! ?
Ans:4 utility 'or editing progra$$ing language sour)e )ode.
&ow can the user implicitl" open and close the files in %'( program ?
Ans:Enter U2 in position P:NP9 o' F spe)s.
Use .PE/ and 23.SE op)odes in RP0 progra$ to open and )lose 'iles.
&ow man" parameters can be defined in a %'( program+ ?
Ans:9;;
What is ile *nformation Data Structure?
Ans:File In'or$ation Data stru)ture !I/FDS% )an be de'ined 'or ea)( 'ile to $a?e 'ile
e#)eption,error in'or$ation a-ailable to t(e progra$. 4 'ile in'or$ation data stru)ture
)ontains prede'ined sub'ields t(at identi'y1 t(e na$e o' t(e 'ile 'or *(i)( t(e
e#)eption,error o))urred. t(e re)ord being pro)essed *(en t(e e#)eption,error o))urred
or t(e re)ord t(at )aused t(e e#)eption,error. &(e last operation being pro)essed *(en t(e
e#)eption,error
o))urred.&(e status )ode. &(e RP0 routine in *(i)( t(e e#)eption,error o))urred.
What is the use of SDA ?
Ans:S)reen Design 4id is used to )reate display 'iles intera)ti-ely.
&ow do "ou pass parameters in CL?
Ans:Using P4R" ?ey*ord.
What are the valid user defined data area t"pes?
Ans:2H4R, /U"ERI2 and 3.0I243
What is 1ulti<format logical file?
Ans:3ogi)al *(i)( uses 'ields 'ro$ t*o or $ore p(ysi)al 'iles.
What is the Select and 2mit criteria in logical file?
Ans:&(is is used to spe)i'y rules 'or t(e Sele)tion,.$ission o' re)ords 'ro$ a P(ysi)al
File.
Can fields be concatenated *-a logical file level?
Ans:5es. by using 2./24& ?ey*ord
When would the ALL ,e"word be used?
Ans:Use *it( Sele)t or .$it, to sele)t,o$it re)ords.
What are the different t"pes of ,e"words in displa" files?
Ans:File le-el, Re)ord 'or$at le-el, Field le-el
What is difference between CA04 0CA04 .CA0?
Ans:
CA0 N 2on)atenate t*o -ariables or )onstants into one )ontinuous string.
.CA0 N &run)ates all trailing blan?s in t(e 'irst )(ara)ter string, one blan? is inserted,
t(en t(e t*o )(ara)ter strings
are )on)atenated.
0CA0 < &run)ates all trailing blan?s in t(e 'irst )(ara)ter string, t(e t*o )(ara)ter strings
are )on)atenated.
What are the different t"pes of messages in CL?
Ans:I$$ediate $essage, Brea? $essage, Progra$ $essage, User $essage
&ow to trap errors in CL?
Ans:By using "onitor "essage 2o$$and !"./"S0%
What is the ma$imum length of a variable name in CL?
Ans:"a#i$u$ :: )(ara)ters !in)luding S&S%
What are the limitations of CL Ecompare to %'(F ?
Ans:5ou )an not use 23 progra$ to 4DD or UPD4&E re)ords in database 'iles.
Use Printer or I2F 'iles.
Use Progra$ des)ribed 'iles.
Use t(e )on)ept o' sub'ile !to display $ore t(an one re)ord%, but a single output $essage
sub'ile is a spe)ial type o'
sub'ile t(at is supported *ell in 23.
Use subroutines.
5ou )annot de)lare $ore t(an one ob@e)t !'ile% in a 23 progra$$e.
What is the use of &eader Specification in %'(5@AA?
Ans:It identi'ies by H in )olu$n , pro-ides in'or$aion about generating and running
progra$s.
When will D!1' and DE.!( opcodes be ignored?
Ans:I' blan? is spe)i'ied in position :; o' H spe)s.
Specif" different indicators used in %'(?
Ans:.-er'lo* indi)ators
Re)ord Identi'ying Indi)ators
Field Indi)ators
Resulting Indi)ators
2ontrol 3e-el Indi)ators
What are Control level indicators?
Ans:3: to 3L used to identi'y )ertain 'ields on )ontrol 'ields and t(en used to )ondition
*(i)( operations are to be pro)essed at detail or total )al)ulation or output ti$e.
What is the use of E specification in %'(?
Ans:E#tension Spe)s des)ribes all re)ord address 'iles, arrays and tables.
What is the use of L specs in %'(?
Ans13ine )ounter spe)i'i)ation )an be used to des)ribe printer 'ile to indi)ate t(e lengt(
o' t(e 'or$ and nu$ber o' lines per page.
*n which specification the report la"out can be defined?
Ans:. Spe)i'i)ation.
&ow man" files can be defined in specs?
Ans:;=
&ow man" printer files can be defined in specs ?
Ans:>
What is the ma$imum number of records "ou can specif" in a displa" file?
Ans::=9E
&ow can a screen field that has changed since the last output operation be
detected ?
Ans:4tta)( t(e "D& !$odi'ied data tag% attribute to t(e 'ield, to dete)t *(et(er 'ield (as
been )(anged as a result o' user input.
What would be the effect on the field where reverse image4 underline and highlight
displa" attributes were active?
Ans:&(e result is sa$e as i' you (ad spe)i'ied /D.
What is the use of DS'A0%E1D0F ,e"word?
Ans:Sets on t(e $odi'ied Data &ag o' t(e 'ield. &(e Data &ag dete)t *(et(er t(e 'ield (as
been )(anged as a result o' user input.
*f DS'A0%E'CF and CS%L2C were specified for a format4 which ,e"word would
have priorit"?
Ans:2SR3.2 gains priority.
Can error messages as a result of a C21'4 %A-(E or 9AL!ES ,e"word be
overridden?
Ans:5es, t(roug( 2HK"S0ID ?ey*ord.
What the purpose of 29%D0A4 29%A0A ,e"words?
Ans:.VRD&4 ?ey*ord !'ield or re)ord le-el% )an be used to o-erride t(e e#isting data
)ontents o' a 'ield or re)ord already on t(e display.
.VR4&4 ?ey*ord !'ield or re)ord le-el% )an be used to o-erride t(e e#isting display
attributes o' a 'ield or re)ord already on t(e display.
&ow can a message from a message file appear as a constant on the screen?
Ans:By using "S02./ !$essage )onstant% ?ey*ord.
*n con;unction with what other ,e"word must 29%D0A and 29%A0A be used?
Ans:PU&.VR ?ey*ord $ust used.
What is the purpose of the *-DA%A ,e"word?
Ans:&(is FileNle-el ?ey*ord is used to re$o-e option and response indi)ators 'ro$ t(e
bu''er and pla)es t(e$ in LLNbyte separate indi)ator area.
E$plain the purpose of 3EE' and ASS!1E ,e"words?
Ans:KEEP1 Keep t(e display 'ro$ being deleted *(en t(e display 'ile is )losed.
4SSU"E1 It is used to spe)i'y t(at t(e .S,E== progra$ is to assu$e t(at t(is re)ord is
already s(o*n on t(e display
*(en t(is 'ile is opened.
E$plain the use of D0W%0 displa" ,e"word?
Ans:/o re)ords *ill be displayed until t(ere is any I,. operation.
What is the purpose of %CD0A ,e"word ?
Ans:I$$ediately display a re)ord 'or$at *it(out *aiting 'or t(e ne#t I,. operation.
What ,e"word must be used with '%20EC0 ,e"word?
Ans:.VER345
What is Subfile?
Ans:Sub'ile is group o' re)ords o' sa$e re)ord 'or$at and )an be read 'ro$ or *rite to
t(e display in a single operation.
What are all the contents of subfile?
Ans:Sub'ile Re)ord For$at, Sub'ile 2ontrol Re)ord For$at, Relati-e Re)ord /u$ber,
Sub'ile Re)ord /u$ber, 4sso)iated Sub'ile Key*ords.
What are the two record formats a subfile contain ?
Ans:Sub'ile re)ord 'or$a !SF3%, and sub'ile )ontrol re)ord 'or$a !SF32&3%.
What is SL'A( and SLS*8 ?
Ans:
SL'A( 1 it is an attribute *(i)( spe)i'ies t(e nu$ber o' re)ords t(at )an be displayed
in a s)reen.
SLS*8 1 it is an attribute *(i)( spe)i'ies t(e nu$ber o' re)ords )an be stored in sub'ile.
What is the ma$imum number of subfiles that can be specified in a displa" file4
Ans1;:9
1a$imum number of subfiles that can Defined in a %'( program for one displa"
file is
Ans19E
1a$imum number of subfiles that can be active for a single file is?
Ans::9
Can more than one subfile record be displa"ed on one line?
Ans:5es, by using SF33I/ ?ey*ord.
&ow do "ou specif" the number of records to roll in a subfile?
Ans:Use SF3R.3V43 ?ey*ord in DDS along *it( nu$ber, *(i)( spe)i'ies t(e nu$ber
o' re)ords to s)roll at a ti$e.
&ow will "ou displa" a particular page in subfile?
Ans:"o-e a -alid relati-e re)ord nu$ber !RR/% in t(e 'ield spe)i'ied using
SF3R2D/BR ?ey*ord in DDS.
&ow to pic, up the changed records ever" time in a subfile after the first change
made?
Ans:Seton SF3/H&2H0 ?ey*ord indi)ator and update t(e sub'ile re)ord.
What is the use of SLE-D ,e"word?
Ans:By spe)i'ying t(is ?ey*ord, t(e Botto$,"ore $essage )ould be displayed at end o'
s)reen.
&ow to toggle between single line and 1ulti < line displa" of a particular record in a
subfile?
Ans:Using SF3DR.P ?ey*ord.
E$plain the difference between defining Subfile and 1essage<subfile?
Ans:Sub'ile re)ord is de'ined by SF3 ?ey*ord, *(ere as "essage sub'ile is de'ined by
SF3"S0 ?ey*ord.
What are the different t"pes of variables available in CL?
Ans:DE2, 2H4R, 303

You might also like