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


Please Help Members By Posting Answers For Below Questions

What is program status data structure(psds) in as400?

827


define what a data area is along with a brief example of what it may be used for?

1247


WHICH REPLY CODE IS USED BT sftp ? ... (e.g.226 is used by FTP IF FILE IS TRANSFERED)

1907


which are the member types which seu supports?

1056


which cl command can be used at program execution to redirect the file named in an rpg program?

940


What is %CHECK?

1037


how do you know that records are locked?

1537


What are the types of data structure in as400?

761


what is the purpose of putovr (put with explicit override) keyword?

1257


how do you use exceptional write in c specs?

1507


how do you read data area in an rpg program?

1464


how can I predict the performance of my cgis?

856


. How to know why the OPM job is in MSGWAIT state?..WHAT COULD BE THE REASON FOR it?

7479


Hello, I have created a CMD type object. In one of the fields in Display file , I would like to see All the Source files present by pass the name of Library. Tried using CHoice(Keyword) and Choicepgm on PARM , but doesn't seems to be working. Any help please..

2000


How can we change the uppercase to Lowercase in RPG?

1123