RPG programming language" /> Structures

 

Structures

All MQ structures are defined with initial values for the fields, with the following exceptions:

These initial values are defined in the relevant table for each structure.

The structure declarations do not contain DS statements. This allows the application to declare either a single data structure or a multiple-occurrence data structure, by coding the DS statement and then using the /COPY statement to copy in the remainder of the declaration:

D*..1....:....2....:....3....:....4....:....5....:....6....:....7
D* Declare an MQMD data structure with 5 occurrences
DMYMD        DS                          5
D/COPY CMQMDR