Ans:To define files, to describe the files, to assign the files to specified devices.
How do you specify page overflow indicator for printer files in RPG?
Ans:Specify an indicator in position 33-34 of F specification.
What is a Primary File?
Ans:It is used in RPG Program Cycle to automatically read records in a cycle.
Can a indexed file be accessed in arrival sequence in RPG program?
Ans:Yes.
What opcode could be used to test an alphanumeric field for all numeric values?
Ans:TESTN
What opcode will be used to test the zone of a character field?
Ans:TESTZ
How to read database records without locking them?
Ans:Put 'N' in position 53 of C specs.
What does CHECK opcode is used?
Ans:The check operation verifies that each character in the base string (factor 2) is among the character indicated in the comparator string (factor 1).
What does 'SR' in columns 7-8 of C specs mean?
Ans:Calculation operation is a part of RPG subroutine.
What is SCAN and XLATE?
Ans:SCAN operation scans a character string (base string) contained in factor 2 for a substring (compare string ) contained in factor 1.
XLATE operation translates characters in source string (factor 2 ) to the from and to strings (factor 1 ) and put into the result field.
How do you use commitment control in RPG program ?
Ans:Using COMIT operation. Makes all changes to the files that have been specified in output operation since the previous COMIT or the begining of operations under commitment control(if there has been no previous COMIT or ROLBK operation).
How do you use exceptional write in C specs?
Ans:Using EXCPT opcode.
What does the opcode FREE do?
Ans:The FREE operation removes a program from the list of activated programs, frees static storage and ensures program initialization (first cycle processing) the next time program is called. It does not close file or unlock data area.
What does opcode POST do?
Ans:Puts information in INFDS.
What is the maximum number of elements in an array?
Ans:9999
What is a Program Described file in RPG?
Ans:The field name and length of the fields are defined with in the RPG program.
What is externally described file ?
Ans:All information about the fields is specified in DDS and the RPG program can use them with in the program.
Can you specify a display file to be used in the following modes Input, Output, or Combined modes ?
Ans:Yes.
What is match field indicator?
Ans:Matching record indicator is seton when all the matching fields in the record of a secondary file matches with all the matching fields of a record in a primary file.
What is the length of a variable in RPG?
Ans:6 Characters.
When is a TAG statement used in RPG?
Ans:It is used as Label.
Can we define Multi-dimensional arrays in RPG?
Ans:No.
What is XFOOT opcode?
Ans:Adds all the elements in a numeric array, and places the sum in the result field.
How can we sort an array?
Ans:By using SORTA opcode.
What is Program Status Data Structure?
Ans:A Program status DS can defined to make program exception/error information available to an RPG program.
DS is defined as 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 program.
What is the maximum number of times Multiple Occurrences DS can occur in a program?
Ans:9999
What are all the compiler directive statements?
Ans:/TITLE, /SPACE, /EJECT, /COPY
What is SAA?
Ans:Systems Application Architecture (SAA) is a collection of selected software interfaces, conventions, and protocols that will provide a consistent framework across the System/370, AS/400 and PS/2.
During execution, an RPG/400 program automatically follows a sequence of operations for each record that is processed. The built-in program cycle includes
the following logical steps.
1. reading input (READ)
2. processing calculations (PROCESS)
3. writing output (WRITE)
What is the Function of PDM?
Ans:Productivity tool for copying, deleting, scanning, changing & creating source files.
What is the function of SEU ?
Ans:A utility for editing programming language source code.
How can the user implicitly open and close the files in RPG program ?
Ans:Enter UC in position 71-72 of F specs.
Use OPEN and CLOSE opcodes in RPG program to open and close files.
How many parameters can be defined in a RPG program. ?
Ans:255
What is File Information Data Structure?
Ans:File Information Data structure (INFDS) can be defined for each file to make file exception/error information available to the program. A file information 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 that 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.
What is the use of SDA ?
Ans:Screen Design Aid is used to create display files interactively.
Source: aired.in
No comments:
Post a Comment