Previous Topic Table Of Contents Parent Topic Next Topic |  | # SWSSMF Function Related Topics Web Server API Function Index
| May be used in Shadow/REXX
| May not be used from Other REXX Interpreters
| No high-level language interface
This function enables SEF event procedures to create and write customized SMF records. ## SWSSMF Syntax The SWSSMF function has this format: `var = SWSSMF( subtype, data )` Both arguments to the SWSSMF function are required. The arguments are: subtype A numeric value between 1000 and 32767. This value becomes the SMF record subtype code. data The data argument is the part of the SMF record following the standard Shadow OS/390 Web Server 40-byte header section. This data can contain at most 344 bytes. If records exceed this limit, Shadow/REXX truncates them and issues a warning message. ## Return Values The SWSSMF function returns these values: 0 The SMF record was successfully written 4 Shadow/REXX received a non-zero return code from the SMFWTM macro while trying to write the SMF record. This error may result when all SMF data sets are full. 8 The product's SMFNUMBER parameter is set to zero, preventing the product from creating SMF records. Top