Syntax: SELECT cx dgname
Placement: RETURN Section, EVERY Section, ATEND Section
Description: Causes the record number of the last record
read from data group dgname (or the last record
written by the WRITE statement) to be placed in the
collection cx. The collection cx must be different
from the collection used by the calling REPORT command.
It is the responsibility of the calling program to
initialize and examine the target collection.
As an example, suppose REPORT definition PARTS_CHECK
creates a secondary collection called B PARTS. The
possible DCL procedure would be:
CLEAR B PARTS
REPORT A ACCORDING TO PARTS_CHECK
TALLY/X B PARTS
IF %ANSWER > 0
procedure for B PARTS
ENDIF
Copyright © 2019 , WhamTech, Inc. All rights reserved. This
document is provided for information purposes only and the contents hereof are
subject to change without notice. Names may be
trademarks of their respective owners.