State True or False.
1.1 Control specification follows File description specification. (F)
1.2 Calculation specification is written after all specifications. (F)
1.3 Only one H spec is allowed in a program. (T)
1.4 Spooling is system function that puts data into a storage area to wait for processing. (T)
1.5 A maximum of 50 files are allowed per program. (T)
1.6 Maximum 8 printer files are allowed per program. (T) .
1.7 File Type (position 15) U is valid for Work station files. (F)
1.8 *12ABC is a valid symbolic name. (F)
1.9 Any opcode can be used as symbolic name. (F)
2.1 SET ON LR is the last statement of any program. (F)
2.2 In Compile time array data must be given after SET ON LR statement. (F) 2.3 Pre-run time array is loaded before compilation. (F) loaded bfore calc op 2.4 AND operation is given higher precedence than the OR operation. (T)
2.5 CABxx opcode compares and branches to a subroutine. (F) branched to a label 2.6 CALL opcode is used to invoke a subroutine. (F) 4 a program
2.7 Parameters must be passed when CALL opcode is used. (F) 2.8 CHAIN opcode retrieves the record randomly and reads it. (T) 2.9 CHAIN opcode is used only with Full procedural files. (T) 2.10 DELET opcode deletes a file. (F) [only record Is deleted.]
2.11 EXFMT operation is a combination of a WRITE followed by READ to the same record. (T) [for display files]
2.12 GOTO and TAG opcodes are associated to each other. (T) 2.13 MOVE opcode copies contents of Fact2 field to Result field. (T)
2.14 PARM opcode can be used only with PLIST opcode. (F) [parm can also be used with call]
2.15 Equal indicator is set on if the READ operation is successful. (F) [for chain u use hi, for read u always go 4 equal] set on is used for not found
2.16 SELEC and WHxx opcodes are related to each other. (T) 2.17 WRITE opcode writes a new record to a file. (T)
3.1 SFLDSP keyword must be activated only if there are records in the subfile. (T) 3.2 SFLRCDNBR is a mandatory keyword for Expand subfiles (T)
3.3 Subfiles are used just for displaying the records. (F) 3.4 Subfiles can also be used to input or update data. (T)
3.5 Subfiles enables the user to display more than one record at a time. (T) 3.6 The function of keywords SFLCLR and SFLINZ is same. (F) Fill-in the blanks.
1.1 There are ________ kinds of specifications in RPG/400. (7)
1.2 Date format for the program is given in _____________ spec. (H) [debug also]
1.3 Array files are described in _____ spec. (E) [tables also]
1.4 __________ spec is used for defining data structures. (I)
1.5 For _________________files record description is given in the program. (Program-described)
1.6 To rename a record-format name, use _______ option on ______ spec continuation line.
(RENAME,F)
1.7 Record description for Program-described files is given in _________ spec. (I)
1.8 __________ file allows a program to communicate interactively with the work-station user.
(WORKSTN) [display files]
1.9 The system process arithmetic calculations more efficiently if the data is in ______________
format. (Packed-decimal).
1.10 Various options in File Type (position 15) of F-spec are ___________. (I, O, U, C)
1.11 Various options in File Designation (position 16) of F-spec are ________________. (Blank, P, S, R, T, F)[primary, sec, record add, tables, fully procedural]
1.12 ____ and ____ are options in File Format (position 19). (F, E) [programe described n externally described]
1.13 Input is controlled by calculation operations in _____________ file. (Full procedural) [from where the i/p is to be taken]
1.14 Various options in Device (positions 40-46) of F-spec are ______________________.
(Printer, Disk, Workstn, Special, Seq)
1.15 C-specs indicate the ___________ to be done on the data in a program. (Operations)
2.1 ____________ command is used to compile an RPG program. (CRTRPGPGM) [or option 14]
2.2 ____________ is an area in storage which is defined into subfields. (Data structure) 2.3 ____________ subroutine is automatically invoked in the program before 1P output.
(*INZSR)
2.4 __________ function provides a way to include source specifications from a source-file member in a program. (/COPY)
2.5 _________ array is loaded before any operations are processed (Pre-run time) 2.6 ________ opcode does Addition operation. (ADD)
2.7 ________ opcode identifies the beginning of a subroutine. (BEGSR) 2.8 ________ opcode conditionally invokes the Subroutine. (CASxx)
2.9 _______ opcode retrieves a record from a full procedural file Based on Key value. (CHAIN) 2.10 The High indicator of CHAIN opcode is set on when the record is found/not found. (Not found)
2.11 The Low indicator of COMP opcode is set on if Fact1 ________than Fact2. (Less than) 2.12 ________ opcode is used to define a field based on the attributes of another field. (DEFN) 2.13 To display the contents of a field ______ opcode is used. (DSPLY)
2.14 _________ opcode defines the end of a subroutine. (ENDSR) 2.15 _________ opcode invokes a subroutine. (EXSR)
2.16 To form a composite key _______ and ________ opcodes are used. (KFLD, KLIST) 2.17 MVR operation must immediately follow the ________ operation. (DIV)
2.18 ________ opcode is used to read the previous record. (READP) 2.19 ________ opcode is used to read the previous equal record. (REDPE) 2.20 To sort an array ________ opcode is used. (SORTA).
2.21 Use of SUBST opcode is _____________. (Return a substring) 2.22 ________ opcode adds the elements of an array. (XFOOT)
2.23 ENTRY is used in ______________(called/calling) program. (Called) [*entry to pass some parameters ]
2.24 What is the maximum length of the op-code. (5)
3.1 Subfiles are essentially a two step process- __________ and ____________. (Load,Display) 3.2 In _________ method of Subfiles roll keys are handled by Subfile itself. (Load-all)
3.3 A Subfile is made up of two formats- ___________ and ____________. (Subfile,Subfile control)
3.4 In _________ method of Subfiles SFLSIZ=SFLPAG. (Single-page)
3.5 Keyword to specify subfile control format _________ (SFLCTL)
4.1 _________ is the file-level keyword to remove option indicators from buffer and to place them in a 99-byte separate indicator area. (INDARA)
4.2 _________ is the field-level keyword to specify the location of an unnamed, 4-digit, zoned decimal field to contain the page number. (PAGNBR)
4.3 _________ is the keyword to specify the printer to skip to a specific line number after it prints one or more lines. (SKIPA)
4.4 _________ is the keyword to specify the printer to space some no of lines after it prints one or more lines. (SPACEA)
4.5 RLU stands for __________________ (Report Layout Utility)
4.6 The significance of Overflow indicator in printer files is ____________ (Page break) Multiple choice questions.
1.1 Information about files is given in which spec. (b) a. H-spec b. F-spec c. C-spec d. E-spec 1.2 Named constants are defined in ____ spec. (c)
a. F-spec b. C-spec c. I-spec d. E-spec 1.3 Currency symbol is specified in which spec. (a)
a. H-spec b. F-spec c. C-spec d. I-spec 1.4 ________ file is processed by Cycle. (a)
a. Primary b. Full procedural c. Array d. Output
1.5 Opcodes are given in which spec. (b)
a. F-spec b. C-spec c. I-spec d. Control 2.1 For which array, data is given in the program. (a)
a. Compile-time b. Pre-run time c. Run time d. Compile-run
2.2 A maximum of _____ arrays are allowed in a program. (d) a. 100 b. 50 c. 1024 d. 200
2.3 Which Opcode is used to pass control to the specified program. (a) a. CALL b. EXSR c. EXEC d. None
2.4 Which Opcode is used to Concatenate Two Character Strings (a) a. CAT b. CONCAT (in LF) c. CATCON d. None
2.5 _____Opcode verifies that each character in the given string is from the given set of characters. (a)
a. CHECK b. VERFY c. CHRCH d. None
2.6 Which opcode is used for division operation. (a) a. DIV b. DIVDE c. DIVD d. None
2.7 Opcode to remove a program from the list of activated programs is (a) a. FREE b. CALL c. FRECAL d. None
2.8 To search for a particular element in an array or table _______ opcode is used (d) a. LOOKP b. LUKUP c. LKUP d. LOKUP
2.9 To find the product of 2 fields _________ opcode is used (c) a. MULTI b. MUPLY c. MULT d. None 2.10 OCUR opcode is associated with (b)
a. Arrays b. Data structures c. Tables d. None 2.11 Which of the below mentioned opcodes is associated with Subfiles (c)
a. READE b. READP c. READC d. None 2.12 Which opcode is used to find the Square root (a)
a. SQRT b. SQR c. SQTR d. None
2.13 To find the difference between the values of two fields ______ opcode is used (b) a. SUBT b. SUB c. SUBTR d. None
2.14 UPDAT opcode can be used only when the file type (position 15 of F-spec) contains (c) a.I b. O c. U d. C
4.1 In which subfiles SFLSIZ = SFLPAG. (d) I. Load-all II. Expand III. Single-page a. I b. II c. III d. I & II 4.2 The maximum number of record formats in a printer file is (a)
a. 1024 b. 1000 c. 2410 d. 2024
4.3 _________ is the keyword to specify that the printer device is to skip to a specific line
number before it prints one or more lines. (c)
a. SKIP b. SPACEB c. SKIPB d. None
4.4 Maximum page with in RLU is (a)
a. 378 b. 132 c. 80 d. 738 Subjective questions.
1.1 How many kinds of specifications are there in RPG/400. What are they.
1.2 What is the purpose of various specifications of RPG/400.
1.3 Differentiate between Externally described files and Program-described files.
2.1 What are special data structures.
2.2 How many types of arrays are there. What are they. Differentiate.
2.3 What is the difference between the CLEAR and RESET opcodes.
2.4 What is the difference between the DO, DOUxx and DOWxx opcodes 2.5 What is the difference between ITER and LEAVE opcodes
2.6 What is the difference between MOVE, MOVEL and MOVEA. Explain with examples.
2.7 How many types of READ operations are there. Explain about READ, READP, READE.
2.8 Explain about READC, READP, REDPE
2.9 What is the difference between CHECK and SCAN opcodes 2.10 Differentiate SETGT and SETLL opcodes.
2.11 What is the difference between Z-ADD and Z-SUB. Expain with examples.
2.12 Which reserved words allow us to access the System date and portions of it, in the program.
2.13 List 6 figurative constants. Explain the purpose of these.
2.14 What is the difference between CLOSE & FEOD opcode.
2.15 What is the use of exception records in O spec.
2.16 How can we open a program without using User Control.
2.17 How will you read the last record in a PF.
2.18 a. A |A| B |C | B |P |Q |R |S | op-code fact2 result
After executing MOVE A B B contains | p | a | b | c | b. A |1 |2 |3 | B |1 |0|
op-code fact2 result
After executing DIV A B B contains | ` | |
2.19 If an indicator, say 99 is to be set on, in how many ways you can do it. (write C-specs) 2.20 What is the out put of KEY1, KEY2 and KEY3 in the following program ? – 0000.01 C MOVE 'CBMEDCLT’ KEY1 7
0000.02 C KEY1 DSPLY
0000.03 C MOVEL'CBMEDCL' KEY2 8 0000.04 C KEY2 DSPLY
0001.00 C MOVEL'CBMEDC' KEY3 8 P 0002.00 C KEY3 DSPLY
0003.0 0 C SETON LR
2.21 What is the output of A,B, C and D in the following program? – 0001.00 C Z-ADD1000 A 40
0002.00 C Z-ADD2000 B 40 0003.00 C MOVE '3000' C 4 0004.00 C MOVE '4000' D 4 0006.00 C MOVE A C 0008.00 C MOVE D B 0009.00 C A DSPLY
0010.00 C B DSPLY 0011.00 C C DSPLY
0013.0 C SETON LR
2.22 What is the output of $TMP1 and $TMP2 in the following program? – 0002.00 C MOVEL*BLANKS $TMP1 8
0003.00 C $TMP1 DSPLY
0004.00 C MOVEL*BLANKS $TMP2 5 0005.00 C MOVEL'I' $TMP2 0007.00 C 'RMTP' CAT $TMP2 $TMP2 0008.00 C $TMP2 DSPLY
0009.00 C SETON LR
2.23 What is the output of $PAY, $PAYC, $PAYD and $ARR,I in the following program? – 0001.01 E $ARR 3 8
0003.00 I DS
0004.00 I 1 10 $PAY 0005.00 I 1 8 $PAYD 0006.00 I 9 10 $PAYC 0006.01 C Z-ADD*ZEROS $VAL 80 0006.02 C MOVE 'ARRAY' $RSN 5 0007.00 C Z-ADD 0217199 $TEMP 82 0009.00 C MOVE $TEMP $PAY 0010.00 C $PAY DSPLY
0010.01 C $PAYD DSPLY 0010.02 C $PAYC DSPLY
0011.00 C MOVE *BLANKS $ARR 0012.01 C Z-ADD1 I 20 0012.02 C MOVE $RSN $ARR,I 0012.03 C $ARR,I DSPLY
0013.0 3 C SETON LR 2.24 What is the output of SUM in the following program? –
0001.0 C Z-ADD5 A 30
0001.1 C Z-ADD0 SUM 50
0001.2 C I DOWLE 100
0001.3 C ADD I SUM
0001.4 C ADD 15 I
0001.5 C ENDDO
0001.6 C SUM DSPLY
3.1 How many types of Subfiles are there. What are they. Differentiate.
3.2 Explain about the keywords SFLCTL, SFLDSPCTL, SFLDSP.
3.3 What is the difference between the keywords SFLPAG and SFLSIZ.
3.4 What is the difference between the keywords SFLCLR and SFLINZ.
3.5 What is the advantage of SFLRCDNBR and SFLNXTCHG keywords.
AS/400 SYSTEM
QS30001 What is the Configuration of the AS/400 system on which you have worked?
AS30001 System E35(Model 9406), 24MB main memory, 3.2GB of HD and supports 49 terminals(7 Port).
QO20002 How many terminals can be connected to a port ? AO20002 7 terminals
QS20003 What do the terms CUA and SAA stand for?
AS20003 Common User Access Systems Application Architecture QL40004 What are the communication protocols supported by AS/400 ?
AL40004 APPC (Advanced Program to Program Communication) BSCEL(Binary Synchronous Link)
ASYNCH(Asynchronous Communication) RETAIL
TCP IP FINANCE
SNUF SNA Upline facility
INTRA Intrasystem communication.
QS30005 What are the different ways of connecting a terminal to a system ? AS30005 Twinnax, Workstation, ASCII and OS/2 Workstation.
QL30006 Why is AS/400 called an Object Oriented Machine ?
AL30006 Everything on the AS/400 system that can be stored or retrieved is contained in an Object. Object exist to make users independent of the implementation techniques used in the machine.
QS30007 What is SAA ?
AS30007 Systems Application Architecture (SAA) is a collection of selected software Interfaces, Conventions and Protocols that will provide a consistent framework across the System/370, AS/400 and PS/2.
QS30008 What are the different AS/400 rack models supplied by IBM ? AS30008 9402, 9404 and 9406.
QL10009 What are the different high-level languages available on AS/400 ? AL10009 RPG/400, CL/400, BASIC, PL/1, C/400, PASCAL, FORTRAN/400
and RM/COBOL-85, COBOL/400 etc..
Q1S2001 What are all the IBM Mid range machines prior to AS/400?
A1S2001 S/38, S/36, S/34, S/32 &S/3.
Q1O2002 What is the Operating System on AS/400?
A1O2002 OS/400.
Q1S2003 What are office tasks available on AS/400?
A1S2003 Office Vision/400 & PC Support/400.
Q1S2004 What are the graphic utilities available on AS/400?
A1S2004 BGU & GDDM.
OS/400
QO20010 What is the version of OS/400 that you have used?
AO20010 Ver 2.2
QS40011 What is DDM ?
AS40011 Distributed Data Management is a function of the OS/400 that allows an application program or user on one system to use database files stored on remote system.
QS30012 What are the facilities available on AS/400 for self-learning ? AS30012 on-line education, Q&A Database and Help.
QS20013 What is an Object ?
AS20013 An object is any thing that exist in and occupies space in storage and on which operation can be performed.
QS20014 What are the different types of Objects available in the AS/400 ? AS20014 Libraries, Folders, Files, Programs, Combined definitions, Queues,
User Profiles.
QL50015 How are the objects stored in AS/400 ?
AL50015 All objects are stored on AS/400 in a single level storage. In this
method all objects are referenced by one virtual address which is translated into a physical address whether it is a auxiliary storage or main memory.
QS30016 What is a library in AS/400 ?
AS30016 A library in AS/400 is an object that serves as a repository for other objects.
QS20017 Name few IBM supplied libraries ?
AS20017 QGPL, QTEMP, QUSRTOOL, QSYS, QRPG & QCBL.
QS10018 What is a library list ?
AS10018 A list that indicates libraries used for the process and the order in which it has to be searched. System identifies it in *LIBL.
QO30019 How many libraries can be there in a library list ? AO30019 Total 40 (15 system and 25 application).
QO30020 Where is the system part of the library list stored ? AO30020 In SYSVAL
QS40021 What is a Folder ?
AS40021 A Folder is a named object that is used as a directory for documents and other folders. Folders can be filed with in another folder.
QS20022 What are the different Application Development Tools available on AS/400 ?
AS20022 SEU, RLU, PDM, SDA, QUERY
QO30023 What are the levels of security on AS/400 ? AO30023 10,20,30,40,50
QS30024 What is error severity ?
AS30024 Error severity determines the level of severity that is required to terminate the job.
QL50025 What is a User Profile ? What are the various classes ?
AL50025 User profile is an object which identifies a user to the system. It contains user name, Password, Owned objects, Authorized objects, Scheduling priority, Special authority, Initial program, Job description.
Security officer, Programmer, Workstation, System operator, Programmer services Rep & Customer engineer.
QS40026 What is Group Profile ?
AS40026 It is similar to User Profile, but the attributes specified is applicable to an entire group.
QS20027 What are the different types of queues in AS/400 ? AS20027 Job queue, Message queue, Output queue, Data queue.
QL20028 What are JobQ and PrintQ ?
AL20028 JobQ : An object that contains a list of batch jobs waiting to be processed by the system.
PrintQ : An object that contains a list of spool files to be written to a printer device.
QL20029 What is a Spool file ? Why is it required ?
AL20029 A file that holds output data to be processed, such as information waiting to be printed.
QL30030 What is a Job ? What are the attributes Of a job ? AL30030 A job is the basic unit of work on AS/400
The attributes are :
Job Number : Unique system generated sequential number Job Name : Any user defined name (Max. 10 char) User Name : Who initiated the job
QS20031 What is job description ?
AS20031 A job description defines the environment in which a batch/interactive job is to be executed.
QL20032 What is the difference between Interactive & Batch job ?
AL20032 Interactive Job : Job started for a person who signon to a workstation.
Batch Job : A predefined group of processing actions submitted to the system to be performed.
QL30033 What is a Group Job ?
AL30033 A Group Job is attached to one workstation and a user. There should be an initial group job and it can be branched to many other group jobs. The group jobs can have different library lists and different output, message queues. Group Job is useful in enhancing the programmers productivity. It is as though logging into the same user-id many times.
QO20034 What are the two main attributes which govern the execution of a job ? AO20034 Run time priority and Time slice.
QL20035 What is a sub-system ?
AL20035 Sub-Systems are specific user defined partitions of the CPU where
various jobs may be executed. One subsystem can have more than one active job at a time.
QL20036 What is a device file ?
AL20036 A device file contains the description of how data is to be presented to a program from a device or Vice versa. Device file can be Printer, Disk, Tape or Remote system.
QS30037 What is an ICF file ?
AS30037 A device file that allows a program on the system to communicate with program in other system.
QS30038 What is a message file ?
AS30038 It is a file which contains the messages of an application. For example all RPG/400 messages are stored in a file, all COBOL/400 messages are stored in a file.
QL30039 What is a job log ?
AL30039 A record of request submitted to system be a job. The message related to the requests, and the action performed by the system on the log. It is maintained by the system program
QL20040 What is the purpose of OPNQRYF (Open Query File) ?
AL20040 OPNQRYF is used to select certain records of the database file based on the QRYSLT (Query select) condition.
QS10041 How do you create files dynamically without DDS ? AS10041 Through OPNQRY.
QO10042 What command must be executed before executing OPNQRYF command ?
AO10042 OVRDBF.
QL30043 What is a data area ?
AL30043 A data area is an object used to hold data for access by any job running on the system.
A data area can be locked to a single user, thus preventing other users from processing at the same time.
QS20044 What are the types of data areas ?
AS20044 User defined Data Area, Local Data Area (LDA), Group Data Area (GDA), Program Initialization Parameter (PIP) Data Area.
QS20045 What is LDA ?
AS20045 An LDA is created by the system for each job in the system, including
autostart jobs, jobs started on the system by a reader, and subsystem monitor jobs.
QS10046 What is the type and length of an LDA ? AS10046 *CHAR, 1024 bytes.
QS20047 What is GDA ?
AS20047 The system creates a GDA when an interactive job becomes group
jobs. Only one GDA can exists for a group.
QS10048 How can you create a user defined data area ? AS10048 Using CRTDTAARA command.
QS10049 What are the different ways to input data into a data area ? AS10049 CHGDTAARA (using CL)
Using OUT opcode in RPG
QS10050 How do you retrieve data from data area ? AS10050 Using RTVDTAARA command in CL
Using IN opcode in RPG.
QS10051 What are the valid user defined data area types ? AS10051 CHAR, NUMARIC and LOGICAL.
QS20052 How can a data area be locked after being updated ? AS20052 Using OUT *LOCK.
QS20053 What is the use of data queues ?
AS20053 Data queue is a type of system object that you can create. Data queues are used in program to program communication.
QO10054 How do you create data queues ? AO10054 Using CRTDTAQ command.
QS10055 What are the valid data types for a data queue ? AS10055 Char, Numeric, and Logical.
QS20056 What are the two types of read performed on data queues ? AS20056 Read with lock, and read without lock.
QS20057 How do you use DEBUG utility ?
AS20057 STRDBG program-name UPDPROD(*YES) QS30058 What is an authorization list ?
AS30058 A list of two or more user Ids & their authorities for system resources.
The system identifies it as an object type *AUTL.
QO10059 How do you grant authority for an object?
AO10059 Using GRTOBJAUT command.
QL30060 What are the types of object authorities ?
AL30060 *USE, *CHANGE, *ALL, *EXCLUDE, *AUTL, *OBJEXIST,
*OBJMGT, *OBJOPR, *ADD, *DLT, *READ, *UPD.
QO20061 How do you execute jobs in batch mode ? AO20061 SBMJOB
QO20061 How do you execute jobs in batch mode ? AO20061 SBMJOB