Escolar Documentos
Profissional Documentos
Cultura Documentos
descriptions
Option – 4
2 Given the following code excerpt:
As EXCEPT is not
FFilename++IPEASFRlen+LKlen+AIDevice+.Keywords having factor2 it will
FQPRINTS O F 132 PRINTER OFLIND(*IN80) write all record
OQPRINTS E 10 formats with name as
O TITLE 10
O AUTH 20 blanks.
O E 1
O CONT 30
O E HDG 2
O UDATE 10
O PAGE 20
O E DETAIL 1
O AUTH 20
O VERSNO 30
O CONT 40
O E HDG 2
O UDATE 10
O PAGE 20
C EXCEPT
4 If spacing and skipping are specified for the same line in a printer Option – C
file, in what sequence the spacing and skipping operations are
processed? SKIP has higher
priority than SPACE.
a. 1. Space before 2. Skip before 3. Print a line 4.
Skip after 5. Space after If SKIP is specified, it
b. 1. Space before 2. Skip before 3. Print a line 4. will skip the page first
Space after 5. Skip after then it will skip lines
c. 1. Skip before 2. Space before 3. Print a line 4.
before or after
Skip after 5. Space after
d. 1. Skip before 2. Space before 3. Print a line 4. printing it.
Space after 5. Skip after
5 If the last record of a file has been read, and the next operation on Option - 4
that file is a READ operation, what will be the values of the input
fields for that file?
Program A calls program B and program C. Program B has files As the COMMIT and
under commitment control, and program C does not. ROLBK are JOB levels
or Activation group
Will a ROLBK operation in program C affect the files changed by level.
program B?
Please refer page 707
1. Yes
of ILE RPG Ref.PDF in
2. No
share.
7 The CHAIN operation is equivalent to which of the following? Option - 4
8 When is the NR indicator (position 71-72) for the SETLL operation Option - 1
set on?
FSCREEN CF E WORKSTN
C EVAL OUTFLD=12
C EVAL INPFLD=1
C EXFMT SCRREC
1. 1 and blanks
2. blanks and 12.
3. 1 and 12
4. both fields will be blanks.
(i) PDNSFL
(II) PULDWN
(III) USRDFN
(IV) MNUBAR
FFilename++IPEASF.....L.....A.Device+.Keywords
FORDERS IF E K DISK USROPN
21 What is the maximum number of record formats in a printer file and Option - 4
maximum number of fields in any one record format in a printer file?
(i) The field names should have the same length and type in both
definitions.
(ii) The most recently assigned value will be used for all
occurrences of the field.
(iii) Error occurs since RPG cannot handle two or more fields having
the same name.
(iv) The values in the fields defined in the printer file will override the
values of all other fields having the same name.
24 Which of the following is true regarding the EDTCDE (Edit code) Option - D
keyword in printer files used to edit output-capable numeric fields?
1. DBEMP
2. MYLIB/FILE1
3. OTHERLIB/FILE2
4. OTHERLIB/FILE1
1. A only
2. B only
3. Using Either A or B
4. Using Both A and B.
28 If you specify a file name without a library name as a parameter for Option -2
the EXTFILE keyword, then which library name will be used?
1. QTEMP
2. *LIBL
3. System Value QUSRLIBL
4. Error occurs, since library name is mandatory.
29 What will be the result for the following Code if the printer file Option – 3
TESTPRTF does not exists?
Program described
FTESTPRTF O F 80 PRINTER files are never created
C Eval *INLR = *ON by the program. This
OTESTPRTF H NLR is basically used for
O 'Header'
O D NLR formatting the file.
O 'Detial'
The object for the file
should exist in the libl
1. The string 'Header' and 'Detail' will be printed. to run the program.
2. The string 'Header' will be printed Once Compilation will not
3. The program ends with ERROR. throw any error.
4. The program cannot be compiled as LR is not a valid
indicator for Header Lines
1. 1
2. 512
3. 1024
4. *NOMAX
32 Which of the following we can get from File information Data Option - 1
Structure?
a. Read count
b. Write count
c. Record format name
d. Last Opcode processed on the file
e. End Of file indication
1. All
2. Only C & D
3. A, B, C & E
4. A, B & D
33 When is the indicator (position 75-76) for the SETLL operation set Option - 2
on?