Your Browser is not longer supported

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

{{viewport.spaceProperty.prod}}

CCMD Execute system command

&pagelevel(5)&pagelevel

The CCMD function calls a command without exiting the program mode. The CCMD function is based on the CMD macro described in the “Executive Macros” manual [8 (Related publications)].

Call


CALL SDF('CCMD',area,error,sysout,dialog,list,cmdrc,buff)


Description of the parameter list

Parameter

Data type
(length)

Input/
output

Meaning

CCMD

char(4)

in

Function name: keyword CCMD

area

V-rec@

in

Address of a variable-length record containing the  command to be executed

error

integer

out

Return code of the function

sysout

integer

in

1 : SYSOUT = YES
0 : SYSOUT = NO

dialog

integer

in

1 : DIALOG = YES
0 : DIALOG = NO

list

integer

in

1 : LIST = YES
0 : LIST = NO

cmdrc

char(9)

in

Address of an area, 9 bytes in length, into which the command processor will write the command return code.
Must be aligned on a halfword boundary.

buff

V-rec@

in

Address of a variable-length record for the output buffer
(BUFMOD=SHORT, see the CMD macro)

The parameter list corresponds to PARMOD=31 with specification of the CMDRC or LIST parameter (see the description of the CMD macro in the “Executive Macros” manual [8 (Related publications)]).