a new and unique customer number is generated whenever a new customer is addedto customer master file. Data area keeps track of last record added and add 1 to it. Throughprogram we can access new customer number.
9.Define what a data queue is along with a brief example of what it may be used for?
Data queues provides communication between programs by calling API's QSNDDTAQ andQRCVDTAQ along with parameters like data queue name, library in which data queue exists,variable to store the number of characters to be sent, variable to store the information to besent. We can send the same data queue to the many programs.
10.What is the purpose of the following?
It is a type of initializing the variables in I-spec. and these are further used in C-spec.
11.What is the difference between UDATE and the system date?
UDATE supports two-digit year. The format is *MDY (MMDDYY).*DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY).
12.List some of the commonly used commands for debugging
STRDBG(for batch jobs), STRISDB.
13.Define the RCVF command?
RCVF command used to receive the records either from the data base file or device file.
14.Define the purpose of the %SST function?
To extract the information from the specified string.
15.Define the purpose of the *CAT function?
To concatenate the two strings into a one string.
16.Define the purpose of the *BCAT function?
To concatenate the two strings by placing a single blank in a resultant.
17.Describe the difference between the DOWxx and DOUxx operations?
DOWxx : If the condition becomes true, then only the group of instructions allowed executing.DOUxx : Irrespective of condition, it will execute at least one time.
18.Define the purpose of the LEAVE operation?
If you specify LEAVE, the control transfers to the statement below the ENDDO.
19.Define the purpose of the ITER operation?
If you specify the ITER, the groups of statements are allowed to execute repeatedly.Frequently Asked Questions in AS/400Page 2