# jCL PQ-RESELECT
Updated: 2/24/2021, 3:51:59 PM
Created: 2/24/2021, 3:51:59 PM
Last Updated By: Daniel Klein
Read Time: 1 minute(s)
This command when executed from a jCL program, resets the pointer of a specified select register to the beginning of the list of record keys. It takes the general form:
where register-number is the number (1 to 5) of the select register to be reset.
This command is executed from the primary output buffer to reset the pointer of a specified select register back to the beginning of the list. Each time the "!" reference is used to retrieve a value from the list, the value is not destroyed. The pointer is simply advanced to the next parameter in the list. PQ-RESELECT resets the pointer back to the beginning of the list so that another pass may be performed.
PQ-RESELECT cannot be executed directly from the shell.
An example of use may be as:
HSELECT SALES STON HPQ-SELECT 1 PH MV %1 !1 IF # %1 XNo records selected HPQ-RESELECT 1 PH 10 MV %1 !1 IF # %1 XFinished ... GO 10
Back to jCL.