Data Structures
Date Structures: Data Structure in general means ‘Structure of Different Data Types’. The ILE RPG compiler allows you to define an area in storage and the layout of the fields, called subfields, within the area. Data Structure can be defined by specifying DS in positions 24 through 25 on a definition specification. Uses of Data Structure: Define the same internal area multiple times using different data formats Define a data structure and its sub fields in the same way a record is defined. Define multiple occurrences of a set of data. Group non-contiguous data into contiguous internal storage locations. Operate on all the sub fields as a group using the name of the data structure. Operate on an individual sub field using its name. Special Data Structures: A data area data structure (identified by a U in position 23 of the definition specification) A file information data structure (identified by the keyw...