You are on page 1of 8

AS400 - QUESTIONS How do you pass parameters in CL? Ans:Using PARM keyword.

What are the valid user defined data area types? Ans:CHAR, NUMERIC and LOGICAL What is Multi-format logical file? Ans:Logical which uses fields from two or more physical files. Define what a data area is along with a brief example of what it may be used for? Ans:Data area is a storage area to store limited information. Example: a new and unique customer number is generated whenever a new customer is added to customer master file. Data area keeps track of last record added and add 1 to it. Through program we can access new customer number. Define what a data queue is along with a brief example of what it may be used for? Ans:Data queues provides communication between programs by calling API's QSNDDTAQ and QRCVDTAQ 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 be sent. We can send the same data queue to the many programs. What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02 Ans:It is a type of initializing the variables in I-spec. and these are further used in C-spec. What is the difference between UDATE and the system date? Ans:UDATE supports two-digit year. The format is *MDY (MMDDYY). *DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY). List some of the commonly used commands for debugging Ans:STRDBG(for batch jobs), STRISDB. Define the RCVF command? Ans:RCVF command used to receive the records either from the data base file or device file. Define the purpose of the %SST function? Ans:To extract the information from the specified string.

What is the Select and Omit criteria in logical file? Ans:This is used to specify rules for the Selection/Omission of records from a Physical File. Can fields be concatenated INa logical file level? Ans:Yes. by using CONCAT keyword When would the ALL keyword be used? Ans:Use with Select or Omit, to select/omit records. What are the different types of keywords in display files? Ans:File level, Record format level, Field level Define what a data area is along with a brief example of what it may be used for? Ans:Data area is a storage area to store limited information. Example: a new and unique customer number is generated whenever a new customer is added to customer master file. Data area keeps track of last record added and add 1 to it. Through program we can access new customer number. Define what a data queue is along with a brief example of what it may be used for? Ans:Data queues provides communication between programs by calling API's QSNDDTAQ and QRCVDTAQ 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 be sent. We can send the same data queue to the many programs. What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02 Ans:It is a type of initializing the variables in I-spec. and these are further used in C-spec. What is the difference between UDATE and the system date? Ans:UDATE supports two-digit year. The format is *MDY (MMDDYY). *DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY). List some of the commonly used commands for debugging Ans:STRDBG(for batch jobs), STRISDB. Define the RCVF command? Ans:RCVF command used to receive the records either from the data base file or device file. Define the purpose of the %SST function? Ans:To extract the information from the specified string.

What is difference between CAT, TCAT, BCAT? Ans: CAT - Concatenate two variables or constants into one continuous string. BCAT - Truncates all trailing blanks in the first character string, one blank is inserted, then the two character strings are concatenated. TCAT - Truncates all trailing blanks in the first character string, the two character strings are concatenated. What are the different types of messages in CL? Define what a data area is along with a brief example of what it may be used for? Ans:Data area is a storage area to store limited information. Example: a new and unique customer number is generated whenever a new customer is added to customer master file. Data area keeps track of last record added and add 1 to it. Through program we can access new customer number. Define what a data queue is along with a brief example of what it may be used for? Ans:Data queues provides communication between programs by calling API's QSNDDTAQ and QRCVDTAQ 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 be sent. We can send the same data queue to the many programs. What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02 Ans:It is a type of initializing the variables in I-spec. and these are further used in C-spec. What is the difference between UDATE and the system date? Ans:UDATE supports two-digit year. The format is *MDY (MMDDYY). *DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY). List some of the commonly used commands for debugging Ans:STRDBG(for batch jobs), STRISDB. Define the RCVF command? Ans:RCVF command used to receive the records either from the data base file or device file. Define the purpose of the %SST function? Ans:To extract the information from the specified string.

Ans:Immediate message, Break message, Program message, User message How to trap errors in CL? Ans:By using Monitor Message Command (MONMSG) What is the maximum length of a variable name in CL? Ans:Maximum 11 characters (including '&') What are the limitations of CL (compare to RPG) ? Ans:You can not use CL program to ADD or UPDATE records in database files. Use Printer or ICF files. Define what a data area is along with a brief example of what it may be used for? Ans:Data area is a storage area to store limited information. Example: a new and unique customer number is generated whenever a new customer is added to customer master file. Data area keeps track of last record added and add 1 to it. Through program we can access new customer number. Define what a data queue is along with a brief example of what it may be used for? Ans:Data queues provides communication between programs by calling API's QSNDDTAQ and QRCVDTAQ 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 be sent. We can send the same data queue to the many programs. What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02 Ans:It is a type of initializing the variables in I-spec. and these are further used in C-spec. What is the difference between UDATE and the system date? Ans:UDATE supports two-digit year. The format is *MDY (MMDDYY). *DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY). List some of the commonly used commands for debugging Ans:STRDBG(for batch jobs), STRISDB. Define the RCVF command? Ans:RCVF command used to receive the records either from the data base file or device file. Define the purpose of the %SST function? Ans:To extract the information from the specified string.

Use Program described files. Use the concept of subfile (to display more than one record), but a single output message subfile is a special type of subfile that is supported well in CL. Use subroutines. You cannot declare more than one object (file) in a CL programme. What is the use of Header Specification in RPG/400? Ans:It identifies by H in column 6, provides informaion about generating and running programs. When will DUMP and DEBUG opcodes be ignored? Define what a data area is along with a brief example of what it may be used for? Ans:Data area is a storage area to store limited information. Example: a new and unique customer number is generated whenever a new customer is added to customer master file. Data area keeps track of last record added and add 1 to it. Through program we can access new customer number. Define what a data queue is along with a brief example of what it may be used for? Ans:Data queues provides communication between programs by calling API's QSNDDTAQ and QRCVDTAQ 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 be sent. We can send the same data queue to the many programs. What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02 Ans:It is a type of initializing the variables in I-spec. and these are further used in C-spec. What is the difference between UDATE and the system date? Ans:UDATE supports two-digit year. The format is *MDY (MMDDYY). *DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY). List some of the commonly used commands for debugging Ans:STRDBG(for batch jobs), STRISDB. Define the RCVF command? Ans:RCVF command used to receive the records either from the data base file or device file. Define the purpose of the %SST function? Ans:To extract the information from the specified string.

Ans:If blank is specified in position 15 of H specs. Specify different indicators used in RPG? Ans:Overflow indicators Record Identifying Indicators Field Indicators Resulting Indicators Control Level Indicators What are Control level indicators? Ans:L1 to L9 used to identify certain fields on control fields and then used to condition which operations Define what a data area is along with a brief example of what it may be used for? Ans:Data area is a storage area to store limited information. Example: a new and unique customer number is generated whenever a new customer is added to customer master file. Data area keeps track of last record added and add 1 to it. Through program we can access new customer number. Define what a data queue is along with a brief example of what it may be used for? Ans:Data queues provides communication between programs by calling API's QSNDDTAQ and QRCVDTAQ 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 be sent. We can send the same data queue to the many programs. What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02 Ans:It is a type of initializing the variables in I-spec. and these are further used in C-spec. What is the difference between UDATE and the system date? Ans:UDATE supports two-digit year. The format is *MDY (MMDDYY). *DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY). List some of the commonly used commands for debugging Ans:STRDBG(for batch jobs), STRISDB. Define the RCVF command? Ans:RCVF command used to receive the records either from the data base file or device file. Define the purpose of the %SST function? Ans:To extract the information from the specified string.

are to be processed at detail or total calculation or output time. What is the use of E specification in RPG? Ans:Extension Specs describes all record address files, arrays and tables. What is the use of L specs in RPG? Ans:Line counter specification can be used to describe printer file to indicate the length of the form and number of lines per page. In which specification the report layout can be defined? Ans:O Specification. Define what a data area is along with a brief example of what it may be used for? Ans:Data area is a storage area to store limited information. Example: a new and unique customer number is generated whenever a new customer is added to customer master file. Data area keeps track of last record added and add 1 to it. Through program we can access new customer number. Define what a data queue is along with a brief example of what it may be used for? Ans:Data queues provides communication between programs by calling API's QSNDDTAQ and QRCVDTAQ 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 be sent. We can send the same data queue to the many programs. What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02 Ans:It is a type of initializing the variables in I-spec. and these are further used in C-spec. What is the difference between UDATE and the system date? Ans:UDATE supports two-digit year. The format is *MDY (MMDDYY). *DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY). List some of the commonly used commands for debugging Ans:STRDBG(for batch jobs), STRISDB. Define the RCVF command? Ans:RCVF command used to receive the records either from the data base file or device file. Define the purpose of the %SST function? Ans:To extract the information from the specified string.

How many files can be defined in F specs? Ans:50 How many printer files can be defined in F specs ? Ans:8

Define what a data area is along with a brief example of what it may be used for? Ans:Data area is a storage area to store limited information. Example: a new and unique customer number is generated whenever a new customer is added to customer master file. Data area keeps track of last record added and add 1 to it. Through program we can access new customer number. Define what a data queue is along with a brief example of what it may be used for? Ans:Data queues provides communication between programs by calling API's QSNDDTAQ and QRCVDTAQ 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 be sent. We can send the same data queue to the many programs. What is the purpose of the following? I 'CLOSED' C STAT01 I 'OPEN' C STAT02 Ans:It is a type of initializing the variables in I-spec. and these are further used in C-spec. What is the difference between UDATE and the system date? Ans:UDATE supports two-digit year. The format is *MDY (MMDDYY). *DATE (system date) supports four digit year. The format is *MDYY (MMDDYYYY). List some of the commonly used commands for debugging Ans:STRDBG(for batch jobs), STRISDB. Define the RCVF command? Ans:RCVF command used to receive the records either from the data base file or device file. Define the purpose of the %SST function? Ans:To extract the information from the specified string.

You might also like