Saturday 27 August 2011

IBM AS400 Interview Questions Answers: Series IV

Difference between CALL & SBMJOB?
Ans:
CALL performs interactively job while SBMJOB performs batch job.

Maximum number of Records in Display File?
Ans:
1024

What does VLDCMDKEY means?
Ans:
Valid Command Key.

What is Subroutine in RPG?
Ans:
A subroutine is a group of statements in a program that can be processed several times in that program.

Do we have to Execute the *INZSR compulsory?
Ans
:No, it is a system-defined subroutine it is executed automatically.

What is the use of *PSSR in the program?
Ans:
Whenever there is any type error in the program the control straight away passes onto this subroutine.


Types of Tables in RPG?
Ans:
There are 2 types of tables in RPG they are: - Compile Time Tables Pre-Runtime Tables

What is the error if we don’t get login screen?
Ans:
There is some problem with subsystem.

How to run other job when one job is active?
Ans:
Change the priority or rename the job.

Use of Data Structures?
Ans:
· Dividing a field into sub fields.
· Changing the format of a field.
· Grouping non-contiguous data in a contiguous format.
· Defining an area of storage in more than 1 format.

Types of Data Structures?
Ans:

a. File Information Data Structure.
b. Program Status Data Structure.
c. User Defined Data Structure.
d. Multiple Occurrence Data Structure.
e. Date Area Data Structure.

What is Subfile?
Ans
:A Subfile is a temporary area in memory which records may written to & read from a display file device.

Which is the subsystem that is always on till the main power switch is off?
Ans:
QCTL

What is the command to shutdown the As/400 Server?
Ans:
PWRDWNSYS & Parameter *IMMED.

How can we know the CPU utilization of the server?
Ans:
WRKACTJOB (Work with active job) WRKSYSSTS (Work with system status)

Which are the libraries (system) always present in the library list?
Ans:
QTEMP & QGPL

Which users are allowed to manipulate system libraries?
Ans:
QSECOFR & QSYSOPR

What is a Join Logical File?
Ans:
A Join Logical File combines information from two or more physical files into one record format. Join Logical Files have
always one record format.

Types of Object Locks & what they do?
Ans
:There are mainly 3 types of locks they are as follow: - *EXCL : Only the routing step holding the lock can use the
object *EXCLRD : Routing step can read/update the file other jobs can only read. *SHRUPD : All jobs can read/update the object.

How do you place or remove locks on the objects?
Ans:
*AACOBJ & *DLCOBJ

Some of the object types on which locks can be allocated?
Ans:
Data Area, Data Queue, File, Library, Message Queue, Menu &Program.

What is the opcode to release all the locks on a particular PF?
Ans:
UNLCK

What is a trigger?
Ans:
A trigger is an action that automatically occurs whenever a change Is made to a physical file.

Source: aired.in

No comments:

Post a Comment