exec

Top  Previous  Next

Executes a program through the XFRAME runtime system (i.e. COBOL programs), eventually providing a value for the PARM.

Syntax

exec(name, parm)

Parameters

name

Name of the program to start

parm

(Optional) if supplied and not null, the content of  string is used as PARM value

Return code

The exit code of the program.

Sample

// executes PGMCOB1
myrc=exec("PGMCOB1");
...
// executes PGMPART and supplies PVAL as value for PARM
rc2=exec("PGMPART", "PVAL");