You can define your own macros to add to the IBM®-supplied macro definitions contained in the IBM
macro files provided with the product.
About this task
Tip: The tpfhlasm.dat file is stored in
install_location\Config\TPFSHARE, where install_location is
the location where you installed Developer for z/OS®.
Procedure
To create a new assembler instruction definition in your user macro file, complete the
following steps:
- Do one of the following actions:
- In the HLASM tab of the Editor Options preference page, type the name
of your user macro file in the User Macro File field.
- In the HLASM Parser preference page, type the name of your user macro file in the
User Macro File field.
- Click on the Manage button next to the User Macro
File field.
The Manage Macro Files dialog appears
and, if specified, it will load the macro file from the User Macro File
field.
- Select the desired file from the Macro File combo box, import an
existing file, or create a new file.
The macro file will be loaded into the
dialog.
- Select the Macro Instructions tab in the Manage Macro
Files dialog.
- Click on the New button next to the list of assembler
instructions.
The Create Macro Instruction wizard
appears.
- Specify the name of the macro instruction in the Name field.
- Optional. Specify a description for the macro instruction.
Note: The description will appear when content assist is invoked.
- Select one of the following from the Behavior combo:
- Add definition: this will add the current macro instruction definition to
any definition with the same name in the base macro file.
- Replace definition: this will replace the macro instruction definition in
the base macro file with the current one.
- Remove definition: this will remove the macro instruction definition from
the base macro file when loaded into the parser, thus making the macro instruction definition
unrecognized.
- Optional. Click Next.
- Optional. Create any desired parameters.
- Optional. Click Next.
- Optional. Define any desired relationships.
- Optional. Click Next.
- Optional. Order any created parameters.
- Click Finish.