Restricting read and write access to the active data set
After the Q line command is issued, you can neither write to nor read from the active data set and you must wait until the end of the current interval for command processing to be completed.
The Q line command can be used against a historical data set that has a Status field value of Active only; it has no effect on data sets with another status.
When the Q line command is issued against the active data set, the Pending field value changes to QUIESCED. Recording to or reading from the active quiesced data set is prohibited immediately.
When the current interval ends, the results are as follows:
- The historical recorder switches recording to the next available data set and writes the record for the interval that just ended.
- The Status field changes to Active for the new data set.
- The Status field changes to Qscd for the previously active data set and the Pending field retains a QUIESCED value.
The following figure shows how to issue the Q line command against the active data set to force the historical recorder to switch recording to the next available data set at the end of the current interval.
Using the Q line command to restrict read/write access
COMMAND ===> SCROLL ===> PAGE
CURR WIN ===> 1 ALT WIN ===>
>W1 =DSLIST===========SYSB=====*=======dd/mm/yyyy=hh:mm:ss====MVMVS==D=====3
C DDNAME From Date Time To Date Time Rec Status Pending Data set nam
- ------ ---------- ----- --------- ----- --- ------ ------- ------------
q HISTDS03 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm Yes Active ****** PROD1.IMAGSY
HISTDS01 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm Yes Closed ****** PROD1.IMAGSY
HISTDS02 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm No Closed ****** PROD1.IMAGSY
The following figure shows how the Pending field changes when you issue the Q line command.
Pending field change for a quiesced data set
COMMAND ===> SCROLL ===> PAGE
CURR WIN ===> 1 ALT WIN ===>
>W1 =DSLIST===========SYSB=====*=======dd/mm/yyyy=hh:mm:ss====MVMVS==D=====3
C DDNAME From Date Time To Date Time Rec Status Pending Data set n
- ------ ---------- ----- --------- ----- --- ------ ------ ----------
HISTDS03 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm Yes Active QUIESCED PROD1.IMAG
HISTDS01 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm Yes Closed ****** PROD1.IMAG
HISTDS02 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm No Closed ****** PROD1.IMAG
The following figure shows how the Status field changes at the end of the current interval.
Status field changes resulting from Q line command
COMMAND ===> SCROLL ===> PAGE
CURR WIN ===> 1 ALT WIN ===>
>W1 =DSLIST===========SYSB=====*=======dd/mm/yyyy=hh:mm:ss====MVMVS==D=====3
C DDNAME From Date Time To Date Time Rec Status Pending Data set n
- ------ ---------- ----- --------- ----- --- ------ ------- ----------
HISTDS01 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm Yes Active ****** PROD1.IMAG
HISTDS03 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm Yes Qscd QUIESCED PROD1.IMAG
HISTDS02 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm No Closed ****** PROD1.IMAG
Even though the HISTDS02 data set has older data than the HISTDS01 data set, the HISTDS01 data set becomes the Active data set because it has a Rec field value of Yes. The HISTDS02 has a Rec field value of No, so it is not eligible to have data written to it; see Changing-recording-eligibility for more information.
The following figure shows how the Pending field changes at the end of the new interval.
Pending field change at the end of the new interval
COMMAND ===> SCROLL ===> PAGE
CURR WIN ===> 1 ALT WIN ===>
>W1 =DSLIST===========SYSB=====*=======dd/mm/yyyy=hh:mm:ss====MVMVS==D=====3
C DDNAME From Date Time To Date Time Rec Status Pending Data set n
- ------ ---------- ----- --------- ----- --- ------ ------- ----------
HISTDS01 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm Yes Active ******** PROD1.IMAG
HISTDS03 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm Yes Qscd ******** PROD1.IMAG
HISTDS02 dd/mm/yyyy hh:mm dd/mm/yyyy hh:mm No Closed ******** PROD1.IMAG