The SEMA function causes SDF to initiate a dialog with the user, providing the opportunity to correct a semantic error in a statement. Immediately beforehand, SDF analyzes the statement and transfers it to the program as syntactically correct. For detailed information, see the description of the CORSTMT macro ("CORSTMT Initiate semantic error dialog").
Call
CALL SDF('SEMA',area,error,msg)
Description of the parameter list
Parameter | Data type | Input/ | Meaning |
SEMA | char(4) | in | Function name: keyword SEMA |
area | char() | inout | Buffer in which the standardized transfer area was stored (see INIT) |
error | integer | out | Return code |
msg | V-rec@ | in | Address of a variable-length record containing the text of a message to be output during the error dialog (up to 400 characters long) |
The CORSTMT macro is called with the following defaults:
DEFAULT=*NO
INVAR=*NO
CALLID=*NO
CCSNAM=*NO