Previous Topic: SHDCALL Macro

Next Topic: SNMPTRAP Macro

SMFWRITE Macro

The SMFWRITE macro writes a user-defined SMF record (SMS record on VOS3 systems).

Parameters: SMFWRITE Macro

Test Mode

Can be used to test the macro.

If the test mode is OFF, the macro writes the specified record to the SMF (or SMS) data set. If the test mode is ON, the macro sends the specified record to the activity log.

Subtype

Specifies the record subtype. The 9xxx subtypes are reserved for these user-defined records.

Enter a hexadecimal value. The subtype is constructed by prefixing the specified value with 9.

SMF Data

Specifies the data in each field of the record. This field may contain constant or variable data (data contained in variables).

Length

Specifies the length of a data field in bytes.

Example: SMFWRITE Macro

In the following example, the SMFWRITE macro writes a record that indicates when a service starts.

--------- Automation Services : SMFWRITE Macro Parameter Definition ----------- Command ===> Function=BROWSE .- SMF Parameters ------------------------------------------------------------. | | | Test Mode ... OFF | | Subtype ..... FFF | | | | SMF Data Length | | START 6 | | &SERVICE 12 |