What's New in V5R3?

The following list describes the enhancements made to ILE RPG in V5R3:

Table 7. Changed Language Elements Since V5R2
Language Unit Element Description
Control specification keywords
CCSID(*GRAPH:parameter|
*UCS2:number|
*CHAR:*JOBRUN)
Can now take a first parameter of *CHAR, with a second parameter of *JOBRUN, to control how character data is treated at runtime.
Built-in Functions %DEC(expression {format}) Can now take a parameter of type Date, Time or Timestamp
%TRIM(expression:expression) Can now take a second parameter indicating the set of characters to be trimmed
Definition Specification Keywords OPTIONS(*TRIM) Indicates that blanks are to be trimmed from passed parameters
Definition Specifications Length and decimal place entries The length and number of decimal places can be 63 for packed and zoned fields.
Input specifications Length entry The length can be 32 for packed fields and 63 for zoned fields.
Decimal place entry The number of decimal places can be 63 for packed and zoned fields.
Calculation specifications Length and decimal place entries The length and number of decimal places can be 63 for packed and zoned fields.
CHAIN, READ, READE, READP, AND READPE operations Allow a data structure to be specified in the result field when Factor 2 is the name of an externally-described file.
CHAIN, READ, READC, READE, READP, READPE, WRITE, UPDATE operations Allow an externally-described data structure to be specified in the result field when Factor 2 is the name of an externally-described record format.
SORTA operation Now has an extended Factor 2, allowing %SUBARR to be specified.
Table 8. New Language Elements Since V5R2
Language Unit Element Description
Built-in Functions %SUBARR(array:starting element {:number of elements}) Returns a section of the array, or allows a section of the array to be modified.


[ Top of Page | Previous Page | Next Page | Contents | Index ]