The RELEASE statement transfers records from an input/output area to the initial phase of a sorting operation.
The RELEASE statement can only be used within the range of an INPUT PROCEDURE associated with a SORT statement.
___ Format _____________________________________________________________ | | | >>__RELEASE__record-name-1__ ____________________ __________________>< | | |_FROM__identifier-1_| | | | |________________________________________________________________________|Within an INPUT PROCEDURE, at least one RELEASE statement must be specified.
When the RELEASE statement is executed, the current contents of record-name-1 are placed in the sort file; that is, made available to the initial phase of the sorting operation.
MOVE identifier-1 to record-name-1. RELEASE record-name-1.The MOVE is performed according to the rules for the MOVE statement without the CORRESPONDING phrase.
After the RELEASE statement is executed, the information is still available in identifier-1. (See "INTO/FROM Identifier Phrase" under "Common Processing Facilities" in topic 184.108.40.206.)
If the SD entry is specified in a SAME RECORD AREA clause, record-name-1 is still available as a record of the other files named in that clause.
When FROM identifier-1 is specified, the information is still available in identifier-1.
When control passes from the INPUT PROCEDURE, the sort file consists of all those records placed in it by execution of RELEASE statements.
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.