Wednesday, April 19, 2017

AS/400 Interview Questions Answers-section 5

AS/400 Interview Questions Answers-section 5


How to see the CPU usage?
Ans:WRKACTJOB or WRKSYSSTS

While designing the screen, F3 function key is kept common for all record formats. On which level should it be defined?
Ans:File Level

Write down any two mandatory keywords used when defining a subfile?
Ans:SFLDSP, SFLDSPCTL, SFLCTL, SFLSIZ, SFLPAG.

While designing the screen user wants to add file level keywords, then which function key should be pressed?
Ans:F14.

Which Function key should be pressed to define hidden field while you are working with SDA?
Ans:F4

Which function key should be pressed to watch all strings defined on the SDA screen?
Ans:F20

While designing the screen using SDA, which function key should be pressed to get the field from the field reference file?
Ans:F10

From work with member using PDM screen you have to modify existing member using SDA, which option do you select?
Ans: 17

While designing the report using RLU, user wants to add record level keyword then which function key should be pressed?
Ans:F18.

If user wants to add one field on the report then which function key should be pressed?
Ans:F11.

After getting field reference from reference file selected files will appear at the bottom of the screen and then which command function will be used to get it on screen with its label to be left aligned?
Ans: &3L

If user wants to center the company name on his report then which line command will be used?
Ans: CF.

If user wants to change the length of the numeric field defined in report then which combination of keys will be used?
Ans:F23 & F10.

What is difference between SKIPB (2) & SPACEB (2).

If user wants to define new numeric field on record format then which line command will be used?
Ans:VF.

Maximum report length is 132, if user is designing a report using RLU?
Ans:FALSE (378 Max).

To change constant field defined on RLU screen which field level keyword should be used?
Ans:DFT

Which field level keyword should be used to change any numeric field of length 8 to 99.99.9999 format?
Ans:EDTWRD (‘ . . ‘)

Using Query, its also possible to create level break reports.
Ans:TRUE.

Types of Libraries on As/400?
Ans:There are 3 types of libraries on As/400 they are System (*sys), User (*test) & Product (*prod).

Type of Source File & Physical File?
Ans:Source File: - *PF/SRC Physical File: - *PF/DTA

What’s the use of STRPDM?
Ans:To work with Libraries, Objects, Members & User Options.

In which Specs can PF be made internally?
Ans:In I Specs.

What is the format of As/400 Commands?
Ans:Verb Object Qualifier Verb: - action Object: - on which action is performed Qualifier: - identifies your job

What is externally described file?
Ans:A file, which is created externally & described in the program, is called as external described file.

What is Qualified & Unqualified path?
Ans:Qualified path means mentioning object name along with library name while Unqualified path means directly writing the object name.

Which path a good programmer should use?
Ans:Unqualified path.

How many types of files are available on As/400?
Ans:There are 2 types of files on As/400 they are Databases files & Device files.


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.

Jobs in india

IT / Software Jobs,Core Technical Jobs, Government Jobs,Defence Jobs,Research Jobs,BPO Jobs,Bank Jobs, Tech Support Jobs,Health Care Job...