GDSX (Extended General Device Support) Manual
User Exit Descriptions
Extended General Device Support (GDSX) Manual—529931-001
9-12
USER^COMMANDS
! USER^BACKUP a DO^CP is done automatically by backup task.
CALL PUTLOCALPOOL (0,buffer);
END;
USER^COMMANDS
This procedure is called from the monitor task when it receives an SPI command with
an unrecognized token from a TACL process or from an external management
application other than SCF. This procedure provides a way for you to define your own
SPI commands.
status returned value
INT:value
is the returned value. The value of status is generated by a TAL RETURN
statement in the user code and can be one of the following:
iocb input
INT .EXT:ref
is a pointer to the IOCB containing information about the incoming SPI request,
including iocb.bufaddr[x], the address of the token buffer.
file-error output
INT:ref
is the returned file-system error code related to this request.
spi-code output
INT:ref
is the returned SPI error code for this SPI request. Supplying this value is
necessary if you want TSCODE to format the response. A value of -1 means that
this command is invalid.
status := USER^COMMANDS ( iocb !
i
,file-error !
o
,spi-code ); !
o
0 The standard response is all right (that is, the user code does not have any
extra information to return in a response buffer).
1 The user exit formatted the response buffer and there is no need for
TSCODE to supply any response.