Program attributes

The SRTSEQ and LANGID parameters can be specified as program attributes belonging to a *PGM object type.

The LANGID parameter is used together with the SRTSEQ parameter only when the SRTSEQ value is set to *LANGIDUNQ or *LANGIDSHR. Otherwise, the LANGID parameter is not used.

If a program explicitly refers to a sort sequence or a language identifier, then those attributes stored in the program object take effect. The *JOBRUN value for these parameters is used to refer to the attributes of the job running the program. *JOBRUN makes it possible to use a single set of programs processing data according to different sort sequences. The *JOBRUN value affects only the processing of data, however, not the retrieval sequence of data. The retrieval sequence is determined by the database attributes. To retrieve data in a sort sequence different than what is defined in the database, use logical files that are built separately.