Saturday, 27 August 2011

AS400 Realtime Interview Questions Answers : I

How do you set pointers to values 55 or next higher or greater?
Ans:
SETGT.

How will I explicitly open a file in an RPG program?
Ans:
By defining UC in file condition and to opening the file mention OPEN opcode and closing the file by mentioning CLOSE in opcode of C spec.

What is maximum size of data area?
Ans:
9999.

How to fire a JOB?
Ans
:SBMJOB.

How many levels of security are there on AS/400?
Ans:
There are 10 to 50 level of security on AS/400.

How to translate field values form lower case to Upper case?
Ans:
By using opcode XLATE.

What are the maximum parameters can be passed from one RPG program to another RPG program?
Ans:
255



What is the maximum length of an OCCUR?
Ans:
9999.

What is a subfile?
Ans:
Subfile is a group of records which can be used for (Displaying, Adding new record, Modifying the existing record, and Deleting the
existing records).

What is maximum size of a subfile?
Ans:
9999.

How do you write and read a value (similarly as EXFMT of RPG) using a display file in CL?
Ans:
SNDRCVF.

How do you display a screen in CL?
Ans:
SNDF.

How to check end of file in CL?
Ans:
Monitor the message ID (CPF0864).

Can you update a file in CL?
Ans:
NO.

Can you add a record to a physical file through CL?
Ans:
NO

What opcode is used for submit job? Why it is used?
Ans:
SBMJOB opcode is used and it is used for background processing.

How do you monitor message in CL?
Ans:
By using monitor message ID: (MONMSG MSGID (CPF0000)

Except report design what else can be done by O spec?
Ans:
We can write a Physical File from O spec.

What is the full for of CA and CF?
Ans:
Command Attention and Command Function.

Difference between WRKUSRJOB and WRKACTJOB?
Ans:
All the jobs in WRKUSRJOB are seen including Active jobs where as in WRKACTJOB only active jobs are seen.

What are the three levels of SDA?
Ans:
File level, Record level, Field level.

What is *PSSR?
Ans:
It is a system subroutine which is executed by default when any error occurs in a program.

How many maximum parameters can be passed from on RPG program to another CL program?
Ans:
40

How many maximum arrays can be used in a single RPG program?
Ans:
200.

How many maximum loops can be used in a single RPG program?
Ans:
100

How many maximum printer files can be used in a single RPG program?
Ans:
8

Why do we define MOVE *ON *INLR?
Ans:
It frees the memory. All the fields and parameters in the memory will become blank.

How do you shutdown your IBM server?
Ans:
PWRDWNSYS.

If your workstation does not show login screen what might be the problem?
Ans:
Problem with some subsystem.

You have given a job for printing and you are not getting the printout what might be the reason?
Ans:
Some more pending jobs might be there in Job Queue.

There are multiple jobs for printing in job queue and you want to print a important document then what will you do?
Ans:
Change the priority or change the job queue name.

Source: aired.in

No comments:

Post a Comment