Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

51.

Records Can Be Read/update/deleted With Which File?

Answer»

SIMPLE LOGICAL FILE & PHYSICAL File.

Simple Logical File & Physical File.

52.

Which Type Of Object Is Used In Db2/400?

Answer»

*FILE

*FILE

53.

A Query Can Be Displayed Without Saving It?

Answer»

true

true

54.

Which Are The Query Selection Criteria, Which Can Be Given In A Query?

Answer»

LIST

LIST

55.

To Add A File To The 'file Selection' Option Of A Query, The Function Key To Be Pressed Is?

Answer»

F9

F9

56.

A Query Can Be Run In Which Mode?

Answer»

BATCH & INTERACTIVE

Batch & Interactive

57.

How Can You Execute A Command From Within An Rpg Program Without Calling A Clp Program?

Answer»

By calling QCMDEXC APPLICATION program interface we can execute a CL command with in an RPG program.

By calling QCMDEXC application program interface we can execute a CL command with in an RPG program.

58.

What Is *inzsr Used For?

Answer»

It is special type of RPG/400 SUBROUTINE, which is executed AUTOMATICALLY at beginning of the program. It is a GOOD place to CODE initializes the VARIABLES.

It is special type of RPG/400 subroutine, which is executed automatically at beginning of the program. It is a good place to code initializes the variables.

59.

Define A Shared Access Path?

Answer»

To SHARE the open DATA PATH by various PROGRAMS in a same JOB.

To share the open data path by various programs in a same job.

60.

Give Three Main Purposes Of File Specification ?

Answer»

To DEFINE FILES, to describe the files, to assign the files to SPECIFIED DEVICES.

To define files, to describe the files, to assign the files to specified devices.

61.

How Do You Specify Page Overflow Indicator For Printer Files In Rpg?

Answer»

SPECIFY an INDICATOR in POSITION 33-34 of F SPECIFICATION.

Specify an indicator in position 33-34 of F specification.

62.

What Is A Primary File?

Answer»

It is used in RPG PROGRAM Cycle to AUTOMATICALLY READ RECORDS in a cycle.

It is used in RPG Program Cycle to automatically read records in a cycle.

63.

Can A Indexed File Be Accessed In Arrival Sequence In Rpg Program?

Answer»

Yes.

Yes.

64.

What Is A Program Described File In Rpg?

Answer»

The FIELD name and LENGTH of the FIELDS are defined with in the RPG PROGRAM.

The field name and length of the fields are defined with in the RPG program.

65.

What Is Externally Described File ?

Answer»

All information about the FIELDS is specified in DDS and the RPG PROGRAM can use them with in the program.

All information about the fields is specified in DDS and the RPG program can use them with in the program.

66.

Can You Specify A Display File To Be Used In The Following Modes Input, Output, Or Combined Modes ?

Answer»

Yes.

Yes.

67.

What Is Match Field Indicator?

Answer»

Matching RECORD indicator is SETON when all the matching FIELDS in the record of a SECONDARY file MATCHES with all the matching fields of a record in a primary file.

Matching record indicator is seton when all the matching fields in the record of a secondary file matches with all the matching fields of a record in a primary file.

68.

What Is The Length Of A Variable In Rpg?

Answer»

6 CHARACTERS.

6 Characters.

69.

When Is A Tag Statement Used In Rpg?

Answer»

It is USED as LABEL.

It is used as Label.

70.

What Opcode Could Be Used To Test An Alphanumeric Field For All Numeric Values?

Answer»

TESTN

TESTN

71.

What Opcode Will Be Used To Test The Zone Of A Character Field?

Answer»

TESTZ

TESTZ

72.

How To Read Database Records Without Locking Them?

Answer»

PUT 'N' in POSITION 53 of C SPECS.

Put 'N' in position 53 of C specs.

73.

What Does Check Opcode Is Used?

Answer»

The check OPERATION VERIFIES that each character in the base string (FACTOR 2) is among the character INDICATED in the comparator string (factor 1).

The check operation verifies that each character in the base string (factor 2) is among the character indicated in the comparator string (factor 1).

74.

What Does 'sr' In Columns 7-8 Of C Specs Mean?

Answer»

CALCULATION OPERATION is a PART of RPG SUBROUTINE.

Calculation operation is a part of RPG subroutine.

75.

What Is Scan And Xlate?

Answer»

SCAN operation scans a character STRING (base string) contained in factor 2 for a substring (compare string ) contained in factor 1.

XLATE operation translates characters in SOURCE string (factor 2 ) to the from and to strings (factor 1 ) and put into the result FIELD.

SCAN operation scans a character string (base string) contained in factor 2 for a substring (compare string ) contained in factor 1.

XLATE operation translates characters in source string (factor 2 ) to the from and to strings (factor 1 ) and put into the result field.

76.

How Do You Use Commitment Control In Rpg Program ?

Answer»

USING COMIT OPERATION. Makes all CHANGES to the files that have been specified in output operation SINCE the previous COMIT or the begining of operations under commitment CONTROL(if there has been no previous COMIT or ROLBK operation).

Using COMIT operation. Makes all changes to the files that have been specified in output operation since the previous COMIT or the begining of operations under commitment control(if there has been no previous COMIT or ROLBK operation).

77.

How Do You Use Exceptional Write In C Specs?

Answer»

USING EXCPT OPCODE.

Using EXCPT opcode.

78.

What Does The Opcode Free Do?

Answer»

The FREE OPERATION removes a PROGRAM from the list of activated programs, frees STATIC storage and ensures program INITIALIZATION (first cycle processing) the NEXT time program is called. It does not close file or unlock data area.

The FREE operation removes a program from the list of activated programs, frees static storage and ensures program initialization (first cycle processing) the next time program is called. It does not close file or unlock data area.

79.

What Does Opcode Post Do?

Answer»

PUTS INFORMATION in INFDS.

Puts information in INFDS.

80.

When Would You Prefer Logical File Than Opnqryf?

Answer»

The physical file you are working with very large, CREATING and using a LOGICAL file will allow an application to perform faster than using an open query file. Since access paths created by open query files are temporary, APPLICATIONS that use an access path FREQUENTLY will be more EFFICIENT using a logical file, since the access path will not have to be rebuilt every time the file is open.

The physical file you are working with very large, creating and using a logical file will allow an application to perform faster than using an open query file. Since access paths created by open query files are temporary, applications that use an access path frequently will be more efficient using a logical file, since the access path will not have to be rebuilt every time the file is open.

81.

What Is The Purpose Of Dynslt Keyword?

Answer»

This is a file LEVEL keyword USED in a logical file. If you specify this in a file level, the system doesn't PERFORM record SELECTION until the program reads file. Then on the Select/Omit criteria, it selects the records from the SPECIFIED file.

This is a file level keyword used in a logical file. If you specify this in a file level, the system doesn't perform record selection until the program reads file. Then on the Select/Omit criteria, it selects the records from the specified file.

82.

What Is The Purpose Of Data Structure?

Answer»

* Divide a FIELD in to sub fields
* CHANGE the FORMAT of a field
* Group non-contiguous data in a contiguous format
* DEFINE an AREA of storage in more than one format
* Define Multiple occurrences of data structures.

* Divide a field in to sub fields
* Change the format of a field
* Group non-contiguous data in a contiguous format
* Define an area of storage in more than one format
* Define Multiple occurrences of data structures.

83.

Define Data Structure?

Answer»

Data structures are specified in the Input specifications of an RPG/400 program to DEFINE an AREA in STORAGE and layouts of related SUB FIELDS.

Data structures are specified in the Input specifications of an RPG/400 program to define an area in storage and layouts of related sub fields.

84.

What Is The Purpose Of Overrides?

Answer»

The basic PURPOSE of Overrides is to temporarily CHANGE the attributes of a file. So you don't have to create permanent files for every combination of attributes your application might need. Overrides GIVES you the FLEXIBILITY to use existing MODEL files and dynamically change their attributes.

The basic purpose of Overrides is to temporarily change the attributes of a file. So you don't have to create permanent files for every combination of attributes your application might need. Overrides gives you the flexibility to use existing model files and dynamically change their attributes.

85.

What Is The Clp Command To Access A Query/400?

Answer»

WRKQRY

WRKQRY

86.

What Are Different Types Of Substems?

Answer»

QBATCH, QINTER, QSPL, QCMN, QCTL, QBASE.

QBATCH, QINTER, QSPL, QCMN, QCTL, QBASE.

87.

Define Subsystem?

Answer»

SUBSYSTEM is NOTHING but it provides specialized environment to COMPLETE the EXECUTION of jobs.

Subsystem is nothing but it provides specialized environment to complete the execution of jobs.

88.

What Is The Function Of Crtdupobj Command?

Answer»

To CREATE the REPLICA from the ORIGINAL OBJECT.

To create the replica from the original object.

89.

What Is The Function Of Cpyf Command?

Answer»

To COPY the DATA from the ONE FILE to ANOTHER.

To copy the data from the one file to another.

90.

What Is The Function Of Cpysplf Command?

Answer»

It COPIES the spooled FILE to the DATA BASE file.

It copies the spooled file to the data base file.

91.

Define A Output Queue?

Answer»

OUTPUT QUEUES are queues of JOBS WAITING to be PRINTED.

Output queues are queues of jobs waiting to be printed.

92.

How Would You Design The Process For A Nightly, High Volume Check Producing Process That Needs To Select Only Records That Are Flagged To Be Processed?

Answer»

With the help of OPNQRYF Clp COMMAND, we can select the records from the DATA base file. The process involves following steps:
Steps: 1. OVRDBF with SHARE (*YES)
2. OPNQRYF
3. CALL the program
4. DLTOVR
5. CLOF

With the help of OPNQRYF Clp command, we can select the records from the data base file. The process involves following steps:
Steps: 1. OVRDBF with SHARE (*YES)
2. OPNQRYF
3. CALL the program
4. DLTOVR
5. CLOF

93.

Which Of The Following Operations Does Not Zero The Field Flda Defined As 4,0?

Answer»

C MOVE *ZEROS FLDA
C Z-ADD *ZEROS FLDA
C Z-ADD 0 FLDA
C MOVE *ALL'0' FLDA
C SUB FLDA FLDA
C MOVE '0000' FLDA
C CLEAR FLDA
C MOVE *BLANKS FLDA
The LAST instruction does NOT ZERO the field FLDA.

C MOVE *ZEROS FLDA
C Z-ADD *ZEROS FLDA
C Z-ADD 0 FLDA
C MOVE *ALL'0' FLDA
C SUB FLDA FLDA
C MOVE '0000' FLDA
C CLEAR FLDA
C MOVE *BLANKS FLDA
The last instruction does NOT zero the field FLDA.

94.

How Many Libraries Can Be There In Library List ?

Answer»

TOTAL 40 (15 system and 25 APPLICATION)

Total 40 (15 system and 25 application)

95.

What Is Library List ?

Answer»

A list that indicates libraries USED for the process and the ORDER in which it has to be SEARCHED System IDENTIFIES it in *LIBL.

A list that indicates libraries used for the process and the order in which it has to be searched System identifies it in *LIBL.

96.

Name Few Ibm Supplied Libraries?

Answer»

QGPL, QTEMP, QSYS, QUSRTOOL, QCBL, QRPG

QGPL, QTEMP, QSYS, QUSRTOOL, QCBL, QRPG

97.

What Is Ddm ?

Answer»

DISTRIBUTION 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.

Distribution 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.

98.

What Is The Version Of Os/400 That We Have?

Answer»

V4R2 (VERSION 4. 0 RELEASE 2. 0)

V4R2 (Version 4. 0 Release 2. 0)

99.

Why Is As/400 Called Object Oriented Machine?

Answer»

EVERYTHING on the AS/400 SYSTEM that can be stored and RETRIEVED is CONTAINED in the object.

Everything on the AS/400 System that can be stored and retrieved is contained in the object.

100.

What Is Term Cua , Saa?

Answer»

COMMON USER Access
System APPLICATION Architecture

Common User Access
System Application Architecture