Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

sdfcmd Execute system command

&pagelevel(5)&pagelevel

The sdfcmd function calls a command without exiting the program mode. The sdfcmd

function is based on the CMD macro described in the “Executive Macros” manual [8 (Related publications)].

Format:


int sdfcmd (char *area, int sysout, int dialog, int list, char *cmdrc, char *buff);


Description of the parameters

char *area

Pointer to a string containing the command to be executed. SDF
internally converts the string into a variable-length record.

int sysout

Specifies whether the log is to be output to SYSOUT and/or the
log buffer:
0 : SYSOUT = NO (SYSOUT only)
1 : SYSOUT = YES (SYSOUT and buffer)

int dialog

Specifies whether an error dialog is to be initiated if syntactical
errors are discovered:
0 : DIALOG = NO
1 : DIALOG = YES

int list

Specifies whether the area string contains more than one
command with semicolons as separators
0 : LIST = NO (only one command in the string)
1 : LIST = YES (more than one command in the string)

char *cmdrc

Pointer to a string (9 bytes) in which the command processor is
to store the command return code. cmdrc must be aligned on
the halfword boundary.

char *buff

Pointer to a string into which the log is output (BUFMOD=SHORT,
see the CMD macro).

Result

The function returns an integer as its result (see "Description of the C functions").

A version 3 parameter list (VER=3, PARMOD=31 - see CMD macro in the

„Executive Macros“ manual [6] is generated.