You can invoke High Level Assembler from a running program using the CALL, LINK, XCTL, or ATTACH system macro instructions.
When you use CALL, LINK, or ATTACH, you can supply:
If you use XCTL, you cannot pass options to the assembler. The assembler uses the installation default options. Table 24 shows how to invoke the assembler dynamically.
The option list must begin on a halfword boundary. The first two bytes contain the number of bytes in the remainder of the list. If no options are specified, the count must be zero. The option list is free form, with each field separated from the next by a comma. No spaces should appear in the list, except within the string specified for the EXIT or SYSPARM options, providing the string is enclosed within single quotation marks.
The ddname list must begin on a halfword boundary. The first two bytes contain the number of bytes in the remainder of the list. Each name of less than 8 bytes must be left-justified and padded to 8 bytes with spaces. If an alternative ddname is omitted, the standard name is assumed. If the name is omitted within the list, the 8-byte entry must contain binary zeros. Names can be omitted from the end merely by shortening the list. The sequence of the 8-byte entries in the ddname list is as follows:
Overriding ddname: Any overriding ddname specified when High Level Assembler was installed, occupies the corresponding position in the above list. The overriding ddname can also be overridden during invocation. For example, if SYSWORK1 replaced SYSUT1, it occupies position 8 in the above list. However, SYSWORK1 can be overridden by another name during invocation.
DYNAMICM CSECT
DYNAMICM RMODE 24
DYNAMICM AMODE ANY
BEGIN SAVE (14,12)
USING BEGIN,15
ST 13,SAVEAREA+4
LA 13,SAVEAREA
CALL ASMA90,(OPTIONS),VL
L 13,SAVEAREA+4
RETURN (14,12)
SAVEAREA DS 18F
OPTIONS DC Y(OPTIONSL)
OPTS DC C'XREF(SHORT)'
OPTIONSL EQU *-OPTS
END[ Top of Page | Previous Page | Next Page | Contents | Index ]