List and explain the different type of data structures?
Answer Posted / pratap thakur
* Data area data structure: When the data area is defined in an RPG/400 program as a data area data structure, its data is implicitly retrieved for processing and written back at the end of the program. In the data area data structure, letter "U" must be entered to define the data structure as a data area data structure.
* File information data structure: A file information data structure provides exception/error information that may be occurred when processing a file during program execution.This type of data structure contains pre defined sub fields that identify
* The name of the file for which the error occurred
* The record processed when the error occurred
* The operation being processed when the error occurred
* The status code number
* The RPG/400 routine in which the error occurred. Exception errors may be controlled by testing for an error code in the *STATUS field which is included in a file information data structure.Specifically, keywords including *FILE, *RECORD, *OPCODE, *STATUS, *ROUTINE provide the previously named information.
* Program status data structure: Program status data structure however identity exception/errors that are generated in the program by RPG/400 operations and not by a file.Note that any code greater than 00099 is flagged as an exception/error.Four keywords - *STATUS, *ROUTINE, *PROGRAM, *PARMS are supported by a program status data structure.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
any one have give AS400 study material? pls pass it to gopalsai789@gmail.com
how you get the relative record in a subfile in which cursor is located?
what the purpose of ovrdta, ovrata keywords?
a multiple format logical file is also known as?
how do you read data area in an rpg program?
what is meant by object lock requests,held locks and locks waiting to be applied(wrkobjlck) why should we apply for locks.Please explain sir.
How to add 99 menu (page down) option in menu creation..
what is service program?
what is message file?
when should I use method get, and when should I use method post in my cgis?
What Is The Error If We Don't Get Login Screen?
Difference Between Source Physical File & Physical File?
which single rpg opcode performs both setll and reade?
which are the string manipulation opcodes?
describe the difference between the dowxx and douxx operations?