Section 1 – CL Command use
1)
Use of mon-message. A piece of code was given with the
MONMSG at procedure level and it was asked where will the control go if an
error happened in the processing of a command defined somewhere in the
procedure.
2)
Command to write and read a file in CL.
3)
A call to a program is to submitted in batch and a
customized library list is to be sent along with it.
4)
How to retrieve the job date/job name. Available
options had RTVJOBA, RTVJOBD etc.
5)
CHGDTAARA command was given with a complex VALUE
parameter which contained %SST. Was asked to mark the option, which gives the
right value in the Data area.
6)
How can the current library list be changed.
7)
How to debug a program running in batch.
8)
A file with key A is to be accessed randomly on the
basis of a field B. Available options
Create a new logical, Opnqry with STRSEQ parameter having B, Sorting the
file etc.
9)
How to see the logical files created over a file by
using CL command.
Section 2 – RPG Command use
1)
Where is the *INZSR subroutine coded.
2)
A field was defined with the like keyword. Was asked
about its length and initial value.
3)
A DATFMT was defines at control spec. There were date
definations at D spec. Was asked to recognize incorrect format.
4)
How is the format of a date defined at control
specification level.
5)
%ELEM was used to define an array in the DIM keyword.
Was asked how many records the array will have.
6)
Complex %subst using %scan with addition and
subtraction done in the return value of SCAN.
7)
If DIV used with factor 2 zero what will happen.
Options available Result indicator will be set on, *PSSR code will be executed,
Result factor will have zero etc.
8)
A piece of code was given using DIV opcode where factor
2 was zero and *PSSR subroutine was coded. Was asked to detect what will
happen.
9)
A data area DS was given and IN OUT operations
performed. Among five different samples of code was asked to find out in which
case the Data area will be locked and unlocked.
10) How
to find the Program name and some related information. Options had SDS etc.
11) An
expression using op-codes was to be converted using built in functions - %Dec
and %DECH.
12) What
is the correct syntax for Op-code Test(D)
13) When
does a indicator defined in 73-74 position seton while chaining a record.
14) Except
keyword. A file defined in F spec as O type and a DS defined in D spec. How can
the file be updated using the DS.
Section 3 – Advanced RPG
Programming
1)
Complex Logical expression using Indicators and a
variable. Analyzing and determine the result of the variable.
2)
Setting the indicator value by using logical
expressions.
*IN50 = (A = B)
what will be the
indicator value.
3)
With the same condition as above a complex piece of
code was given and the result was to be determined.
4)
A complex logic in words using and either, or, neither
to be written in expression.
5)
A complex piece of code with a variable using ITER and
LEAVE was given and analyzing that code the value of that variable was to be
determined.
6)
How to include a service program in your program.
7)
While creating the program if *OWNER is given to the
usrprf parameter what is its significance.
8)
A program ‘A’ compiled with activation grp. *New calls
a program ‘B’ compiled in activation grp. QILE. Program B has the following
code: -
Count = count + 1
Seton
RT
After the
program has been invoked 3 times. What will be the value of count?
9)
A Question on the same lines as above but not in
different activation group. What will be the value of count?
10) Where
is a prototype defined.
11) Select
the right prototype definition. Extpgm definition was used?
12) A
piece of code for sub procedures was given. What is the length of the value
returned?
13) API
for ovrdbf.
Section 4 – Subfiles
1)
There are some 200 records to be loaded. The roll
up/down keys should be very fast. Which loading technique to be used.
2)
What does the keyword SFLNXTCHG do.
3)
What does the keyword SFLRCDNBR do.
4)
A piece of code
was given using SFLRCDNBR. At what position the cursor will be?
5)
There was a piece of code having different keywords along
with there indicators. What will be the indicator positions to initialize the
sub file.
6)
If a record has been deleted and you don’t want do
display it on the subfile anymore. What is the best possible way to do it?
Section 5 – RPG Performance and
Exception/Error Handling
1)
There was some question where some data movement was
done and then finally asked what will be the result. Available option Data
truncation etc.
Section 6 – RPG Data Handling
1) A multiple occurrence data structure was defined. How
to set the occurrence using the OCCUR opcode.
2)
An EDS was defined using prefix but the fields were not
renamed using EXTFLD. What will be the name of the fields used in the program.
Επισκέψου μας
ReplyDeleteΜε εξειδίκευση στην κατασκευή ιστοσελίδων και την στοχευμένη προώθηση. Αναλαμβάνουμε την κατασκευή και προώθηση όλων των τύπων ιστοσελίδων.
sunroof installation
ReplyDeleteWe are providing the best Sunroof Installation service. Contact us for professional Custom sunroof installation only on Arizona Sun Tops.