The RELEASE Statement
Syntax
Format
RELEASE record-name-1 [ FROM { identifier-1
literal-1 }]
Description
The RELEASE statement is used within the context of a SORT INPUT PROCEDURE to release data records to the sort process. The released data is moved into the sort file associated with record-name-1. If the FROM clause is included, the FROM item is copied into record-name-1 before the data record is released.
Tips
1. The RELEASE statement is the equivalent of a WRITE statement, except that is used exclusively for SORT files.
2. An INPUT PROCEDURE must contain at least one RELEASE statement.
3. The RELEASE statement may only be used within the context of an INPUT PROCEDURE.
4. The RETURN statement is used to read SORT files.
Syntax
Format
RELEASE record-name-1 [ FROM { identifier-1
literal-1 }]
Description
The RELEASE statement is used within the context of a SORT INPUT PROCEDURE to release data records to the sort process. The released data is moved into the sort file associated with record-name-1. If the FROM clause is included, the FROM item is copied into record-name-1 before the data record is released.
Tips
1. The RELEASE statement is the equivalent of a WRITE statement, except that is used exclusively for SORT files.
2. An INPUT PROCEDURE must contain at least one RELEASE statement.
3. The RELEASE statement may only be used within the context of an INPUT PROCEDURE.
4. The RETURN statement is used to read SORT files.