HLASM Language Reference
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


POP instruction

HLASM Language Reference
SC26-4940-06

The POP instruction restores the PRINT, USING, or ACONTROL status saved by the most recent PUSH instruction.
Read syntax diagramSkip visual syntax diagram
                             .-,----------------.   
                             V              (1) |   
>>-+-----------------+--POP----+-PRINT----+-----+--------------->
   '-sequence_symbol-'         +-USING----+         
                               '-ACONTROL-'         

>--+----------+------------------------------------------------><
   '-,NOPRINT-'   

Notes:
  1. Each keyword from this group can be selected only once.
sequence_symbol
Is a sequence symbol.
PRINT
Instructs the assembler to restore the PRINT status to the status saved by the most recent PUSH instruction.
USING
Instructs the assembler to restore the USING status to the status saved by the most recent PUSH instruction.
ACONTROL
Instructs the assembler to restore the ACONTROL status to the status saved by the most recent PUSH instruction.
NOPRINT
Instructs the assembler to suppress the printing of the POP statement in which it is specified.
The POP instruction causes the status of the current PRINT, USING or ACONTROL instruction to be overridden by the PRINT, USING or ACONTROL status saved by the last PUSH instruction. For example:
          PRINT  GEN                    Printed macro generated code
          DCMAC  X,27                   Call macro to generate DC
+         DC     X'27'                  ... Generated statement
          PUSH   PRINT                  Save PRINT status
          PRINT  NOGEN                  Suppress macro generated code
          DCMAC  X,33                   Call macro to generate DC
          POP    PRINT                  Restore PRINT status
          DCMAC  X,42                   Call macro to generate DC
+         DC     X'42'                  ... Generated statement

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014