Beruflich Dokumente
Kultur Dokumente
AS400 Questions
What is the Configuration of the AS/400 system on which you have worked?
System E35(Model 9406), 24MB main memory, 3.2GB of HD and supports 49 terminals
(7 Port).
How many terminals can be connected to a port?
7 terminals
What do the terms CUA and SAA stand for?
Common User Access Systems Application Architecture
What are the communication protocols supported by AS/400?
AL40004 APPC (Advanced Program to Program Communication) BSCEL (Binary Synchrono
us Link)
ASYNCH (Asynchronous Communication)
RETAIL
TCP IP
FINANCE
SNUF SNA Upline facility
INTRA Intrasystem communication.
What are the different ways of connecting a terminal to a system?
Twinnax, Workstation, ASCII and OS/2 Workstation.
Why AS/400
Everything
an Object.
es used in
What is SAA ?
Systems Application Architecture (SAA) is a collection of selected software Inte
rfaces, Conventions and Protocols that will provide a consistent framework
across the System/370, AS/400 and PS/2.
What are the different AS/400 rack models supplied by IBM?
9402, 9404 and 9406.
What are the different high-level languages available on AS/400?
RPG/400, CL/400, BASIC, PL/1, C/400, PASCAL, FORTRAN/400 and RM/COBOL-85, COBOL/
400 etc..
What are all the IBM Mid range machines prior to AS/400?
S/38, S/36, S/34, S/32 &S/3.
What is the Operating System on AS/400?
OS/400.
What are office tasks available on AS/400?
Office Vision/400 & PC Support/400.
What are the graphic utilities available on AS/400?
BGU & GDDM.
OS/400
What is DDM ?
Distributed Data Management is a function of the OS/400 that allows an applicati
on program or user on one system to use database files stored on remote system.
What are the facilities available on AS/400 for self-learning?
on-line education, Q&A Database and Help.
What is an Object?
An object is any thing that exist in and occupies space in storage and on which
operation can be performed.
What are the different types of Objects available in the AS/400?
Libraries, Folders, Files, Programs, Combined definitions, Queues, User Profiles
.
How are the objects stored in AS/400?
All objects are stored on AS/400 in a single level storage. In this method all o
bjects are referenced by one virtual address which is translated into a physical
address whether it is an auxiliary storage or main memory.
What is a library in AS/400?
A library in AS/400 is an object that serves as a repository for other objects.
Name few IBM supplied libraries?
QGPL, QTEMP, QUSRTOOL, QSYS, QRPG & QCBL.
What is a library list?
A list that indicates libraries used for the process and the order in which it h
as to be searched. System identifies it in *LIBL.
How many libraries can be there in a library list?
Total 40 (15 system and 25 application).
Where is the system part of the library list stored?
In SYSVAL (QSYSLIBL)
What is a Folder?
A Folder is a named object that is used as a directory for documents and other f
olders. Folders can be filed with in another folder.
What are the different Application Development Tools available on AS/400?
SEU, RLU, PDM, SDA, QUERY
What are the levels of security on AS/400?
10,20,30,40,50
What is error severity?
Error severity determines the level of severity that is required to terminate th
e job.
What is a User Profile? What are the various classes?
User profile is an object which identifies a user to the system. It contains use
r name, Password, Owned objects, Authorized objects, Scheduling priority, Specia
l authority, Initial program Job description. Security officer, Programmer, Work
station, System operator, Programmer services Rep & Customer engineer.
What is Group Profile?
It is similar to User Profile, but the attributes specified is applicable to an
entire group.
What are the different types of queues in AS/400?
Job queue, Message queue, Output queue, Data queue.
What are JobQ and PrintQ ?
JobQ : An object that contains a list of batch jobs waiting to be processed by t
he system.
PrintQ: An object that contains a list of spool files to be written to a printer
device.
What is a Spool file? Why is it required?
A file that holds output data to be processed, such as information waiting to be
printed.
What is a Job? What are the attributes of a job?
A job is the basic unit of work on AS/400
The attributes are:
Job Number: Unique system generated sequential number
Job Name : Any user defined name (Max. 10 char)
User Name: Who initiated the job?
What is job description?
A job description defines the environment in which a batch/interactive job is to
be executed.
What is the difference between Interactive & Batch job?
Interactive Job: Job started for a person who signon to a workstation.
Batch Job: A predefined group of processing actions submitted to the system to b
e performed.
What is a Group Job?
Group Job is attached to one workstation and a user. There should be an initial
group job and it can be branched to many other group jobs. The group jobs can ha
ve different library lists and different output, message queues. Group Job is us
eful in enhancing the programmer s productivity. It is as though logging into the
same user-id many times.
What are the two main attributes which govern the execution of a job?
Run time priority and Time slice.
What is a sub-system?
Sub-Systems are specific user defined partitions of the CPU where various jobs m
ay be executed. One subsystem can have more than one active job at a time.
What is a device file?
A device file contains the description of how data is to be presented to a progr
am from a device or vice versa. Device file can be Printer, Disk, Tape or Remote
system.
What is an ICF file?
A device file that allows a program on the system to communicate with program in
other system.
What is a message file?
It is a file which contains the messages of an application. For example all RPG/
400 messages are stored in a file; all COBOL/400 messages are stored in a file.
What is a job log?
A record of request submitted to system is a job. The message related to the req
uests, and the action performed by the system on the log. It is maintained by th
e system program
What is the purpose of OPNQRYF (Open Query File)?
OPNQRYF is used to select certain records of the database file based on the QRYS
LT (Query select) condition.
How do you create files dynamically without DDS?
through OPNQRY.
What command must be executed before executing OPNQRYF command?
OVRDBF.
What is a data area?
A data area is an object used to hold data for access by any job running on the
system. A data area can be locked to a single user, thus preventing other users
from processing at the same time.
What are the types of data areas?
User defined Data Area, Local Data Area (LDA), Group Data Area (GDA), and Progra
m Initialization Parameter (PIP) Data Area.
What is LDA?
An LDA is created by the system for each job in the system, including autostart
jobs, jobs started on the system by a reader, and subsystem monitor jobs.
What is the type and length of an LDA?
*CHAR, 1024 bytes.
What is GDA?
AS400 system creates a GDA when an interactive job becomes group jobs. Only one
GDA can exist for a group.
How can you create a user defined data area?
Using CRTDTAARA command.
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.
How can a data area are locked after being updated?
Using OUT *LOCK.
what is the use of data queues?
Data queue is a type of system object that you can create. Data queues are used
in program to program communication.
How do you create data queues?
Using CRTDTAQ command.
What are the valid data types for a data queue?
Char, Numeric, and Logical.
What are the two types of read performed on data queues ?
Read with lock, and read without lock.
Starts commitment control for files that are being journal led.
What are the system objects required for journaling?
Journal receiver, journal and PFs to be journal led.
What is CPF ?
Control Program Facility (CPF) is an operating system on S/38.
What is invocation stack ?
List of programs maintained by the system as one program calls another in a seri
es of calls within a single task or job.
What is time slice ?
A finite amount of time in which a job is granted system resources while other j
obs are queued.
What is IPL ?
Initial Program Loading (IPL) is run by OS/400 when the system is started.
What does V2R2M0 mean ?
Ver. 2, Release 2 & Modification level 0. This refers to the version of OS/400.
Name the commands used to duplicate a file?
CPYF - Copy File & CRTDUPOBJ - Create Duplicate Object.
Name the command for changing the attributes of a spool file?
CHGSPLFA - Change Spool file Attributes.
Name the command which gives the attributes of a job ?
RTVJOBA - Retrieve Job Attributes.
What is the function of PDM ?
Productivity tool for copying, deleting, scanning, changing & creating source fi
les.
What is the function of SEU ?
A utility for editing programming language source code.
DATABASE FILES
What are the different definition levels in Data Description specifications ?
File level, Record level, Field level, Join level, Keyfield level, Select/Omit l
evel.
What is difference between Source Physical File and Physical File ?
A Source Physical File contains the source for the various objectscreated. This
file has a specific structure. A Physical File contains data, and the record for
mat can be different for different physical files.
What is the difference between Physical and Logical files ?
Physical file contains data, where as Logical file serves as a access path to da
tabase.
What is an access path ?
The order in which the database fields are organized for processing in the progr
am.
DISPLAY FILES
What are the different types of keywords in display files ?
File level, Record format level, Field level.
What is the maximum number of records you can specify in a display file ?
1024.
How can a screen field that has changed since the last output operation be detec
ted ?
Attach the MDT attribute to the field, to detect whether field has been changed
as a result of user input.
What would be the effect on the field where reverse image, underline and highlig
ht display attributes are active ?
The result is same as if you had specified ND.
What is the use of DSPATR(MDT) keyword ?
Sets on the modified Data Tag of the field. This Data Tag detects whether the fi
eld has been changed as a result of user input.
If DSPATR(PC) and CSRLOC were specified for a format, which keyword would have p
riority ?
CSRLOC gains priority.
Can error messages as a result of a COMP, RANGE or VALUES keyword be overridden
?
Yes, through CHKMSGID keyword.
What is the purpose of OVRDTA and OVRATA keywords ?
OVRDTA keyword (field or record level) can be used to override the existing data
contents of a field or record already on the display. OVRATA keyword (field or
record level) can be used to override the existing display attributes of a field
or record already on the display.
How can a message from a message file appear as a constant on the screen ?
By using MSGCON (message constant) keyword.
In conjunction with what other keyword must OVRDTA and OVRATA be used ?
PUTOVR keyword must be used.
How can a field that is larger than what could fit onto one line be truncated fr
om the last blank rather than from the last character position?
SUBFILES
What is a subfile ?
Subfile is a group of records of same record format and can be read from or writ
e to the display in a single operation.
What are the contents of subfile ?
Subfile Record Format, Subfile Control Record Format, Relative Record Number, Su
bfile Record Number, Associated Subfile Keywords.
What are the two record formats that a subfile contains ?
Subfile record format(SFL), and subfile control record format(SFLCTL).
What is SFLPAG and SFLSIZ ?
SFLPAG : it is an attribute which specifies the number of records that can be di
splayed in a screen.
t. It will be effective only if the resultant value is having more decimals than
the result field.
Explain the difference between READ, CHAIN and SETLL ?
READ operation reads the record currently pointed to, from a full procedural fil
e. CHAIN operation retrieves a record from a full Procedural file, sets a record
identifying indicator ON and places the data in the input fields. SETLL operati
on position a file at the next record that has a key or relative record number t
hat is greater than or equal to the search argument specified. The file must be
fully procedural for all three opcodes.
What does LO and EQ indicators signify in READ, WRITE and CHAIN operations ?
LO indicator specifies the error status on the above operations.EQ indicator spe
cifies the EOF, Record not found.
How can database records be read without lock ?
Put 'N' in position 53 of C specs.
What is the difference between MOVE and MOVEL ?
MOVE operation will transfer characters from the factor 2 to the result field, t
he move starts from rightmost character of factor
2.MOVEL operation will transfer characters from factor 2 to the result field, th
e move starts from leftmost character of factor 2.
How do you concatenate two string variables in RPG ?
Using CAT opcode or with MOVE followed by MOVEL.
What are the string operations possible in RPG/400 ?
CHECK, CHEKR, SUBST, CAT, XLATE, SCAN.
What does SUBST do ?
Extracts a specified character string from a base character string.
What does CHECK opcode do ?
The check operation verifies that each character in the base string (factor 2) i
s among the character indicated in the comparator string(factor 1).
QS10191In conjunction with which statements can ORxx and ANDxx conditions be use
d ?
AS10191 DOUxx, DOWxx, IFxx, and WHxx.
QS10192 What is the difference between DOU and DOW ?
AS10192 DOU checks after entering into the loop, it is performed at least once.D
OW check before entering into the loop.
QL20193 What is ITER and LEAVE opcodes do ?
AL20193 ITER transfers control from within a DO group to the ENDDOstatement of t
he DO
group. It causes the next iteration of the loop to be executed immediately
LEAVE operation transfers control from within a DO group to thestatement followi
ng the ENDDO operation.
QL20194 Which instructions support structured programming in RPG ?
AL20194 ANDxx, CASxx, DO group, ELSE, ENDyy, IFxx, ITER, LEAVE, ORxx, OTHER, SEL
EC, WHxx.
QS10195 What does 'SR' in columns 7-8 of C specs mean ?
AS10195 Calculation operation is a part of RPG subroutine.
QL20196 Explain CASxx, and CABxx statements ?
AL20196 CASxx operation allows you to conditionally select a subroutine for proc
essing. 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.
QL30197 What is CLEAR and RESET ?
AL30197CLEAR operation sets the elements in a structure (record format, array/ta
ble, data
structure) or a variable (field, subfield or indicator) to zero , blank or '0'
depending on the field type (numeric, character, indicator)
RESET operation sets the elements in a structure (record format, array/ table,da
ta
structure) or a variable (field, subfield or indicator) to its initial value.
QL40198 What is SCAN and XLATE ?
AL40198 SCAN operation scans a character string (base string) contained infactor
2 for a substring (compare string) contained in factor 1.
XLATE operation translates characters in source string (factor 2) to the from an
d to strings(factor 1) and put into the result field.
QL40199 How do you use commitment control in RPG program ?
AL40199 Using COMIT operation.
Makes all changes to the files that have been specified in output operation sinc
e the previous COMIT or the beginning of operations under commitment control(if
there has been no previous COMIT or ROLBK operation).
QS30200 How do you use exceptional write in C specs ?
AS30200 Using EXCPT opcode.
QL30201 What does the opcode FREE do ?
AL30201 The FREE operation removes a program from the list of activated programs
, frees static storage and ensures program initialization (first cycle processin
g) the next time program is called. It does not close file or unlock data area.
QS30202 What does opcode POST do ?
AS30202 Puts information in IFNDS.
QS20203 What is the difference between WRITE and EXFMT of a display file ?
AS20203 WRITE displays a record format on workstation,
EXFMT displays and accepts from the workstation.
QS20204 What is the difference between PLIST and KLIST ?
AS20204PLIST operation defines a unique symbolic name for a parameter list to be
specified in a CALL operation.
KLIST is a declarative operation that gives a name to a list of key fields
QO30205 Can you have multiple key lists for a single file ?
AO30205 Yes.
QS40206 What are the different types of arrays available in RPG ?
AS40206 Pre-execution time array.
Compile time array.
Execution time array.
QS20222 What are different ways by which you define working storage field ?
AS20222 Explicitly define or use *Like DEFN.
QO30223 How many parameters can be defined in a RPG program?
AO30223 Max. 255.
QL40224 What are the different ways of ending an RPG program without a primary f
ile ?
AL40224 SETON LR.
SETON H1 to H9 (halt indicators).
SETON RT.
RETRN.
By allowing an exception / error to end the program if
. No exception / error subroutine is specified
. No return point is specified on an exception or error subroutine
. The user's response is to cancel the program.
QL40225 Specify different ways by which RPG program can give error message to us
er?
AL40225 By calling the SUBR23R3 program as passing message id. By defining the e
rror message in DSPF.
QL50226 If you are trying to add a record in a file and an error is displayed,wh
ere do you look for error ?
AL50226 Check whether you have opened the file in Update mode.Check whether you
have specified 'A' in position 72 of F specs.
QL50227 What is a File Information Data Structure ?
AL50227 File Information Data structure (INFDS) can be defined for each file tom
ake file exception/error information available to the program. A file informatio
n data structure contains predefined subfields that identify:
. The name of the file for which the exception/error occurred
. The record being processed when the exception/error occurred or the record tha
t caused the exception/error
. The last operation being processed when the exception/error
occurred
. The status code
. The RPG routine in which the exception/error occurred.
QL50228 What is Program Status Data Structure ?
AL50228 A program status DS can defined to make program exception/error informat
ion available to an RPG program.DS is defined as a program status DS by an S in
position 18 of the DS statement.
*STATUS contains status code
*ROUTINE contains name of routine in which the exception/error occurred.
*PARMS contains the number parameters passed to this program from the calling pr
ogram.
Specify heading information/TITLE.
Specify to begin on a fresh page/EJECT.
To control line spacing/SPACE.
Records to be inserted from other files at the point where it is specified/COPY.
QO30229What is the maximum no. of times multiple occurrence DS can occur in a pr
ogram ?
AO30229 9999.
QL30230 What is the difference between *LIKE and *NAMVAR ?
AL30230 *LIKE defines the variables as in database.
*NAMVAR is used to define variables as data area.
tem
resources viz. memory, disk, etc. A job can be either interactive or batch. For
interactive jobs JOD in User profile is used and for batch jobs JOBD along with
SBMJOB is submitted with an object type of job description is *JOBD. Job
description is a set of characteristics that define how the system handles a job
.
It contains: Job queue (only for batch), job priority, printer to be used, OUTQ
&
its priority, time slice & run priority. If none of the above is specified the
system used the default job description.
Q8L4009 Define a sub system?
A8L4009Sub system is an operating environment, defined by a sub system descripti
on. All
user jobs are processed in the sub system. Eg.QBASE, QBATCH, QCTL, QINTER, etc.
Sub system description defines the characteristics of a sub system. ROUTING
ENTRY: Specifies the program to be called to control a routing step. WORK ENTRY:
Source from which jobs can be accepted. WORK STATION ENTRY: Display stations fro
m
which users can log into the sub system.
Q8L4010 Open query file [OPNQRYF]?
A8L4010Open query file (OPNQRYF) selection can be on:
* Dynamic record selection
* Dynamic keyed sequence
* Dynamic join
* Unique key processing
* Group processing
* Final total processing
* Improve performance
Query access path will be implemented through the following objects
* CL program containing an OPNQRYF to open access path at runtime
* OS/400 physical file used to compile programs [dummy PF] used at runtime
* OS/400 logical file defines the key to OPNQRYF command
Q8L4011 Override database [OVRDBF] ?
A8L4011Override database [OVRDBF] lets to override the filenames or attributes o
f file selected when we compile/run program. Overrides can be used to change mos
t of the attributes. To cancel the override database command we shall have to gi
ve delete override databases DLTOVR.