Professional Documents
Culture Documents
1. What is an Object?
An object is anything that has been created and takes up disk space. Every thing on the
system that can be stored or retrieved is represented as an object. The attribute of an object
includes its name, type, size, the date it was created, a short description provided by the person
who created the object and the name of the library in which it is stored. Each object has a name.
The object name and Object type are used to identify an object.
2. Define Subsystem?
The subsystem is a predefined environment through which the system coordinates the
workflow and use of resource. The system can contain several subsystems, all operating
independently of each other. Subsystem shares resources. The runtime characteristics of a
subsystem are defined in an object called subsystem description.
4. What is job?
A job is the basic unit of work on the AS/400.Each activity is done as a part of a job. Each
piece of work in a subsystem is called a job. Each job is an identifiable sequence of processing
actions that represent use of the system. The job description associated with each job
determines the attributes of the job.
Batch job begins, runs & continues to execute instructions without human intervention or control
while Interactive job are user driven.
A 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 have different library
lists and different output, message queues. Group Job is useful in enhancing the programmers
productivity. It is as though logging into the same user-id many times.
33. What is the difference between production library and test library?
In debug mode, the file exists in production library not allowed to update.
In the other hand, the file exists in test library allowed to update.
36. What is the difference between Packed decimal and Zoned decimal?
Packed decimal : One digit occupies 1 byte.
Zoned decimal : One digit occupies 2 bytes.
42. What are the two main attributes, which govern the execution of a job?
Run time priority and Time slice
57. What the difference between Source Physical File and Physical File?
A Source Physical File contains multiple members. It doesn’t have the access path and we
can create maximum of 32,767 members for a single source physical file.
A Physical File contains data. We can add maximum 32,767 members for a single physical
file. It contains Access path.
62. What is the symbol used for defining a new field in SDA?
'+'.
64. What is the symbol used for copying & moving new field in SDA?
Copying : '-' & '=='.
Moving : '-' & '='.
65. What is the symbol used to get name & length of a field in SDA?
'?' .
*DATE, *TIME.
75. If your workstation does not show login screen what might be the problem?
Problem with some subsystem.
76. You have given a job for printing and you are not getting the printout what might be
the reason?
Some more pending jobs might be there in Job Queue.
77. There are multiple jobs for printing in job queue and you want to print a important
document then what will you do?
Change the priority or change the job queue name.
79. Which Function key should be pressed to define hidden field while you are working
with SDA?
F4
80. Which function key should be pressed to watch all strings defined on the SDA screen?
F20
81. While designing the screen using SDA, which function key should be pressed to get
the field from the field reference file?
F10
82. From work with member using PDM screen you have to modify existing member
using SDA, which option do you select?
17
83. Write system defined function used to place system name on the screen
*SYSNAME
85. If user wants to add one field on the report then which function key should be
pressed?
F11.
86. SDA: 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?
&3L
87. If user wants to center the company name on his report then which line command
will be used?
CF.
88. If user wants to change the length of the numeric field defined in report then which
combination of keys will be used?
F23 & F10.
89. RLU: If user wants to define new numeric field on record format then which line
command will be used?
VF.
90. Maximum report length is 132, if user is designing a report using RLU?
FALSE (378 Max).
91. To change constant field defined on RLU screen which field level keyword should be
used?
DFT
92. RLU: Which field level keyword should be used to change any numeric field of length
8 to 99.99.9999 format?
EDTWRD (‘. . ‘)
93. SPACE and SKIP are FIELD & RECORD LEVEL keywords.
95. Using Query, its also possible to create level break reports.
TRUE.
96. Using DFU, user will be able to ___________ from Physical File?
Add/Update/Selected or all fields.
97. What is the difference between normal UPDDTA to PF and updating using DFU
program?
Both are same only difference is DFU allows you to add or change selected fields.
107. How many types of display are available on As/400 for user interaction?
4 Types they are Entry, Menu, Information & List Display.
120. Which is the subsystem that is always on till the main power switch is off?
QCTL
123. Which are the libraries (system) always present in the library list?
QTEMP & QGPL
130. What is the opcode to release all the locks on a particular PF?
UNLCK
138. The function key to start SEU session through program development manager is?
F6
139. The Member type for an RPG & CL program which SEU supports is?
RPG & CLP
140. Printed output items placed in an output queue are known as?
Spool Files.
143. Change in the externally described file does not require recompilation of the
program? (True/False)
False
145. Which one of the following has the highest priority Library on top of the library list,
Library QGPL, Library on the bottom of the library list & Current library?
Current library
147. While designing the screen user wants to add file level keywords then which function
key is pressed?
F14
149. If user wants to add one field on the report then which function key is pressed?
F11
150. If user wants to center the company name on his report then which command will be
used?
CF (Center Field)
155. What is the difference between UPDDTA to PF & updating using DFU?
Both are same, only difference is DFU program allows you to add & update selected fields.
156. Which function key should be pressed to define hidden field while you are working
with SDA?
F4
157. Which function key should be pressed to watch all string defined on SDA screen?
F20
158. While designing the screen using SDA, which function key should be pressed to get
the field from the FRF?
F10.
159. From WRKMBRPDM screen you have to modify existing member-using SDA which
option do you select?
17.
160. Write system defined function used to place system name on the screen?
*SYSNAME
161. While designing screen F3 function key is kept common for all record formats on
which level should it be defined?
File level
162. If user wants to change the length of the numeric field defined in the report then
which combination of the keys will be used?
F23 & F10
163. What is the difference between SKIPB (2) & SPACEB (2)?
SKIPB (2) skips 1 page & on the next page after skipping 2 lines space print next while
SPACEB (2) skips 2 lines space before printing.
164. RLU: If user wants to define new numeric field on record format then which line
command will be used?
Frequently Asked Questions in AS/400 Page 11
VF
165. Maximum report length is 132, if user is designing a report using RLU?
FALSE (Maximum is 378)
166. To change constant field defined on RLU screen which field level keyword should be
used?
DFT (Default)
181. Submitting a job using numeric parameters, the length of the parameter should be?
15,5
184. What will happen, if we use STRISDB command for RPGLE program?
Error: Program type not valid
189. What is the stored procedure and how do you define a stored procedure.
A stored procedure is a program that can be called to perform operations that can include both
host language statements and SQL statements. Procedures in SQL provide the same benefits as
procedures in a hot language. That is, a common piece of code need only be written and
maintained once and can be called from several programs. Stored procedures can be used in
both distributed and non-distributed applicaitons.
We can have parameters as IN , OUT , INOUT type. Language can be RPGLE, C, CL, etc..
MYLIB/PROC1 this PROC1 is a program written and compiled separately and it is of language
which you are specifying in section LANGUAGE.
190. Writing an SQL statement from selecting records from TWO files using single
statement and Nested select statement.
Using Single statement.
SELECT * FROM FILE1, FILE2
WHERE FILE1.FLD1 = FILE2.FLD1
202. ___________ command allows you to list all authorities and all objects owned by a
user.
DSPUSRPRF This command can be used to dump this data into a system generated
database file when the OUTPUT (*OUTFILE) option is taken.
207. ___________, _____________ and _______________ are the commands allows you
to manage your own batch jobs, all active jobs and jobs by the user respectively.
WRKSBMJOB, WRKACTJOB and WRKUSRJOB.
210. A source physical file can be used for holding up to ____________ source members.
32.
212. _________ key used to obtain system command line with in the SEU screen.
F21.
213. Is any way to manipulate user-defined option for Work member PDM Screen?
Option 9 in STRPDM.
214. CL as a programming language has a limit of _____ record formats per program.
CL as a programming language has a limit of 100 record formats per program. A display
file can contain 1024 record formats definition. The RCDFMT parameter allows you to list which
record formats you would like to use in your CL program. Otherwise the program would declare
the first 99 record formats by default that could be a lot of variables.