Search This Blog

Monday, January 18, 2010

All Interview questions AS400


What are the different ways to input data into a data area ?
CHGDTAARA (using CL)
Using OUT opcode in RPG

How do you retrieve data from data area ?
Using RTVDTAARA command in CL
Using IN opcode in RPG.

What are the valid user defined data area types ?CHAR, NUMARIC and LOGICAL.

What are the valid data types for a data queue ?
Char, Numeric, and Logical.

What are the types of object authorities ? *USE, *CHANGE, *ALL, *EXCLUDE, *AUTL, *OBJEXIST, *OBJMGT, *OBJOPR, *ADD, *DLT, *READ, *UPD.

Explain CASxx, and CABxx statements ?
CASxx operation allows you to conditionally select a subroutine for processing. The condition is based on the relationship between factor 1 and factor 2 as specified by xx.If the relationship is true the subroutine specified in the result field is processed.

CABxx operation compares factor 1 with factor 2 , if the condition specified by xx is true, the program branches to the TAG operation associates with the label specified in the result field.

How do you combine two record formats in RLU ?
Using CLC.

How do you split record formats in RLU ?
Using CLR.

What is the use of SDA ?
Screen Design Aid is used to create display files interactively.

How do you define overlapping fields in SDA ?
They can be defined through condition indicators.

Mention different ways of specifying user help.
Through SDA and Panel Group.

To which member type does help text for panel belong ?
PNLGRP

Can Printer files be externally described or program described ?
Yes.

What are the valid file operation codes for a PRINTER file ?
WRITE, OPEN, CLOSE, FEDO.

If you use INDARA keyword for a program-described PRINTER file, what will be the result ?
You will get run-time error.

What is PRTCTL, and where will you define it ?The PRTCTL (Printer Control) option allows you to change control information and to access the current line value within program for a program-described PRINTER file.PRTCTL option will be specified on a F specifications continuation line for the PRINTER file.

What is the function of RLU ?
To design & prototype a report.

What are the three types of keywords associated with printer file ?
File level, Record level & Field level.

What are the three line types in RLU ?
Report line, Filler line & Sample line.

Which option number is used to invoke RLU ?
Option 19.

What are the different commands used in RLU ?
DR - Define Record, CLC - Change Line for Continuation, CLR - Change Line for Record, SD - Create Sample Data, VF - View Fields, NP - New Page, DC - Define Constants, DF - Define Fields, CF - Centre Fields & SP - Space Fields evenly.

What is the command used to invoke RLU ?
STRRLU.

What are different record spacing keywords in RLU ?
SKIPA, SKIPB, SPACEA & SPACEB.

No comments:

Post a Comment