Why do we use "drop"? What does "using" do?
Submitted by: Administratorneither DROP nor USING affect the register contents.
Once a register has been loaded with the address of a piece
of storage, the using statement can be used to 'map' that
storage against a set of labels defining the layout of that
storage e.g. a DSECT. Then whenever one of those labels is
referenced in the code, in moves etc, the assembler resolves
the relative address as a particular displacement from the
absolute address in the register. The DROP instruction
removes the relationship between the labels and the register
and renders subsequent references to those labels as
unresolvable, giving rise to errors at assembly (compile)time.
Typically the DROP instruction will be used to allow use of
the register for another purpose, e.g. address a different
bit of storage via a using staement on second DSECT without
the risk of corrupting that data via moves referencing the
original DSECT.
Submitted by: Administrator
Once a register has been loaded with the address of a piece
of storage, the using statement can be used to 'map' that
storage against a set of labels defining the layout of that
storage e.g. a DSECT. Then whenever one of those labels is
referenced in the code, in moves etc, the assembler resolves
the relative address as a particular displacement from the
absolute address in the register. The DROP instruction
removes the relationship between the labels and the register
and renders subsequent references to those labels as
unresolvable, giving rise to errors at assembly (compile)time.
Typically the DROP instruction will be used to allow use of
the register for another purpose, e.g. address a different
bit of storage via a using staement on second DSECT without
the risk of corrupting that data via moves referencing the
original DSECT.
Submitted by: Administrator
Read Online IBM Assembler Job Interview Questions And Answers
Top IBM Assembler Questions
☺ | How to Pass the parameters from JCL to assembler Pgm? |
☺ | How are data passed from JCL parm to assembler program. And how is data passed from a calling program to an assembler called program? |
☺ | How to pass instream data in sysin with Assembler? |
☺ | Explain ICM instruction? |
Top Mainframe Technical Categories
☺ | IBM MainFrame Interview Questions. |
☺ | IBM AS400 Interview Questions. |
☺ | JCL Interview Questions. |
☺ | IMS DB Interview Questions. |
☺ | CICS Interview Questions. |