Wednesday, February 6, 2008

Fun Series with iSeries - 06 Feb - Swetha

1.How can I retrieve an IP address of a session AS400?
a. (QDCRDEVD API)


2. Which is the better option to write a transaction (order header and detail transaction) using two physical files or one join logical file(on those two physical files) in a program and why ?
a. Using two physical files is the better option because records can't be written through join logical file.



3. What is the disadvantage of using Global variable?
a. We can not trace out at which point the value of variable is changed.



4. How many triggers can be associated with a file?
a. 6(Maximum)


5. How many types of objects are there on As/400?
"
a. 80


6.Which of the following types of activation groups is automatically
deleted when the last program in the call stack ends?

A. QILE
B. *CALLER
C. *NEW
D. named

a. *NEW


7.Based on the following example, the value of Result is how
many months?

Dname+++++++++++ETDsFrom+++To/L+++Idc.Functions. . . . . .
D Date_A S D INZ(D'1997-01-31')
D Date_B S D INZ(D'1997-04-30')
D Result S 3P 0
*
CL0N01Factor1+++++++Opcode(E)+Factor2+++++++Result++++++++Len++D+HiLoEq.
C Date_B SubDur Date_A Result:*Months

a.2months




8.If the last record of a file has been read, and the next operation on
that file is a READ operation, what will be the values of the input
fields for that file?

A. They will be blank and/or zero.
B. They will be null.
C. They will equal the values of the first record in the file.
D. They will equal the values of the last record read.

a. D





9. The DATFMT Keyword allows you to specify which three of the
following date formats?

A. *USA
B. *MDYC
C. *ANSI
D. *YDM
E. *JUL
F. *ILE
G. *ISO
H. *SAA

a. A,E,G



10. In a program using the control level indicators L1, L2, and L3, in
what sequence are control level calculations processed at LR time?

A. L1, L2, L3, LR
B. LR, L3, L2, L1
C. Only LR calculations are processed.
a. A


11.Which of the following contains only invalid operation code extender?

a. H, M, P
b. N, P, Z
c. H, N, P
d. H, L, N

a. D


12. Which of the following contains only valid File Specification keywords?

a. IGNORE, MAXDEV, SFLLIN
b. SFILE, CALLP, INCLUDE
c. INDSP, INFDS, PREFIX
d. PGMNAME, PLIST, RECNO
e. none of the above
a. E


13. What is the maximum width we can give to report ?
a. 378


14. What is use of Keyword FROMFILE ?
a. The FROMFILE keyword specifies the file that contains the input data for the prerun-time array or table being defined.
The FROMFILE keyword must be specified for every prerun-time array or table used in the



15. In what year was the AS/400 renamed the eServer iSeries?
a. (2000)



a. 1998
b. 1999
c. 2000
d. 2001