|AS400 Interview questions and answers part19
Q1: What is the maximum size of the data area?
The maximum size of the data area is 9999 for the characters.
Q2: How to execute a job?
CL command SBMJOB is used to execute a job named submit the job.
Q3: How to translate field values from lowercase to uppercase in RPG?
Using the %XLATE to translate field values from lowercase to uppercase in RPG.
Q4: What are the max parms that can be passed from one RPG to another RPG program?
Maximum of 255 parm can be passed from one RPG to another RPG program.
Q5: How do you write and maximum read value (same as EXFMT in RPG) using a DSPF in CL program?
SNDRCVF command is used in CL program to do a write followed by a read for the DSPF.
Q6: How do you display a screen in the CL program?
Use Send File (SNDF) and Receive File (RCVF) to display a screen in the CL program.
Q7: How to check the end of a file in the CL program?
The monitor message for the end-of-file is CPF0864 in the CL program.
Q8: What is the difference between WRKUSRJOB and WRKACTJOB?
Q9: What is PSSR?
PSSR is a subroutine in an RPG program that executes automatically when any error occurs in the RPG program.
Q10: What are the max parms passed from RPG to CL program?
The max 40 parms are passed from RPG to CL program.
Q11: Why do we use *INLR = *ON?
We use INLR = *ON to release all the resources which are allocated when we are running that program.
Q12: How do you shut down your IBM server?
Using the Power Down System (PWRDWNSYS) to shut down the IBM server.
Q13: If your workstation does not show a login screen what might be the problem?
The problem may be related to the subsystem not showing the login screen in the workstation.
Q14: A program variable used with embedded SQL in RPG is called?
A program variable used with embedded SQL in RPG is called a Host variable.
Q15: When did the unique constraint on a file got executed?
The unique constraint on a file got executed when we tried to insert the records into the file.