Iseries program information data structure




















As I work in a multiple partition world being able to retrieve the System Name is going to help me to be able to condition code depending upon which partition the program is running on, without retrieving the network name using a CL command.

Love your work. I learn a lot. I have been using the same one for decades. For many years possibly decades too , starting with RPG3, I used a file as you described. My opinion is if you prefer to use a file that is fine. Use whichever one you feel comfortable with. To Group fields. To change the format of the field. To Group non-contiguous data into contiguous format. To convert data. The indicator data structure is used to rename the indicators used in our program with the name that is more meaningful and understanding.

This data structure keyword is used to inherit any data structure definition to another data structure to define it. Example: Using the interface parameter as data structure. Program status data structure. The below table lists some of the commonly used Status Codes.

Status codes. Program status codes are in the range to and File status codes are in the range to Status codes in the range to are considered to be normal i. Equivalent to 'G'. File information data structure. CUST Library. AMIT Position to. Type options, press Enter. The file CUST am using in this example has 3 fields, see below. Only need be renaming the first field, and wanting to leave the others with their original names.

The file information data structure, which must be unique for each file, must be defined in the same scope as the file. Program status codes are in the range to and File status codes are in the range to Status codes in the range to are considered to be normal i.

The below table lists some of the commonly used Status Codes. Now the question is when we use indicator data structure?

Well, the answer the whenever we use more indicators in our program it makes our program little bit complex to understand cause user cant say in program which indicator is doing what simply just by seeing the indicator. This can be done by removing option and response Function keys indicators from record format buffer of display file.



0コメント

  • 1000 / 1000