The Load Module Auditor exit, PVLMAUD, does not insert a CSECT and DC statement immediately before the END statement when assembler programs are assembled if the END statement starts in Column 9.

Document ID : KB000017655
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

According to the System Management guide the Load Module Auditor exit, PVLMAUD, will insert a CSECT and DC statement immediately before the END statement when assembling assembler programs if PVLMAUD is implemented and the ' END ' statement starts in column 9.

What the manual is trying to convey is the leading blank in ' END ' must begin in column 9. The E of the END statement must begin in column 10.

Solution:

The END statement requirement in the System Management guide in Chapter 9: Generalized Exits, Load Module Auditor, Specifications For the Sample Exit specifies:

  • In BAL, a blank CSECT statement and a DC statement are generated immediately preceding the END statement and have altered sequence numbers.

    Note: BAL ' END ' must start in column 9, or it is not found, and the stamp is not inserted.

    IMPORTANT! Any time ' END ' is encountered in BAL source column 9, the stamp is inserted (this does not include such things as comment lines).

    IMPORTANT! With the exception of comment statements, which are identified and ignored, every statement containing ' END ' in columns 9-13 causes the timestamp to be inserted.

Note the leading and trailing blanks around END, so ' END ' is read as "blank,END,blank"

The leading blank starts in column 9, END is in 10-12, and the trailing blank is in 13.