Table of Contents

DMKVSQ Abstract

Statistics

Type ASSEMBLE
Source Lines : 476
Fixes Applied : 4
Most Recent Version : Thursday, December 14, 1978
Last Fix ID : [R13052DK]

Synopsis

Module

       DMKVSQ

Function

       TO LOCATE THE NEXT AVAILABLE SLOT IN A PRINTER/PUNCH
       BUFFER AND MOVE INTO IT A CCW AND DATA.

Attributes

       REENTRANT, RESIDENT, ENTERED VIA BALR FROM DMKVSP

Operation

       1. LOCATE NEXT AVAILABLE SLOT IN PRINTER/PUNCH BUFFER.
          PAGE IN THE BUFFER, IF NECESSARY, AND LOCK THE BUFFER
          IN STORAGE.

       2. IF ENOUGH ROOM EXISTS IN THIS BUFFER FOR THE CURRENT
          REQUEST, GO TO STEP 3. OTHERWISE, CALL DMKPGTSG TO OBTAIN A
          NEW SPOOLING PAGE BUFFER AND WRITE OUT THE FULL BUFFER
          TO DASD.

       3. MOVE THE CCW AND DATA FROM THE WORK BUFFER TO THE VIRTUAL
          BUFFER.

       4. UNLOCK THE BUFFER PAGE AND RETURN TO DMKVSP.

Calls to Other Routines

       DMKPGTSG - TO OBTAIN DASD PAGE BUFFER SPACE
       DMKRPAGT - TO READ A PAGE BUFFER INTO VIRTUAL MEMORY
       DMKRPAPT - WRITE A BUFFER FROM VIRTUAL MEMORY TO DASD
       DMKSPLCV - TO CLOSE A NEW DASD OUTPUT SPOOL FILE
       DMKSPLDL - TO PURGE A PARTIALLY COMPLETE FILE
       DMKPGTVR - TO RELEASE VIRTUAL BUFFER
       DMKPGTVG - TO GET A VIRTUAL BUFFER
       DMKPTRUL - TO UNLOCK A LOCK BUFFER PAGE
       DMKFREE, DMKFRET FOR THE USUAL REASONS