Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

SDF macros

&pagelevel(3)&pagelevel

The SDF user interface can also be employed for user programs. For this purpose, SDF offers the following macro calls (for a detailed description see the “SDF-A” manual [4]):

CLSCALL

CMDALLW

CMDANALY

CMDCST

CMDMEM

CMDRC

CMDRETC

CMDRST

CMDSEL

Closes a syntax file hierarchy opened in the program

Generates a list of permissible operations

Generates EQUATEs for return codes

Initiates a semantic error dialog

Generates a transfer area for status information

Sets a command return code

Generates a DSECT for the command return code

Reads and analyzes a statement and returns the results

Creates a selection menu for defined objects and returns the selection
result (both single and multiple selection are possible)

CMDSTA

CMDSTRUC

Provides information on active syntax files

Generates a standardized transfer area for an analyzed statement in the
old format. The transfer area is only evaluated by the RDSTMT, TRSTMT and
CORSTMT macro calls that are still compatibly supported (for the new
format, see CMDTA).

CMDTA

Generates a standardized transfer area for an analyzed statement in the new format

CMDTST

CMDVAL

CMDWCC

CMDWCO

CORSTMT

Analyzes a statement

Checks whether a value matches a data type

Checks wildcard syntax and compares the patterns

Generates a name from a selector, a name and a constructor

Initiates a semantic error dialog.
The macro call uses the standardized transfer area in the old format and is
only supported when compatible. Applications that use the new format of
the standardized transfer area must use the CMDCST macro call.

OPNCALL

Opens a separate syntax file hierarchy at program level

RDSTMT

Reads and analyzes a statement and returns the results.
The macro call uses the standardized transfer area in the old format and is
only supported when compatible. Applications that use the new format of
the standardized transfer area must use the CMDRST macro call.

TRCMD

Analyzes a command input and generates from it the desired logging
format (see section “Logging”).

TRSTMT

Analyzes a statement.
The macro call uses the standardized transfer area in the old format and is
only supported when compatible. Applications that use the new format of
the standardized transfer area must use the CMDTST macro call.