Callproc Statement
You call a 3GL procedure from an OpenROAD script or 4GL procedure using the callproc statement similarly to the way you call a 4GL procedure. The basic syntax for calling a 3GL procedure is:
[return_variable =] callproc procedurename;
procedurename
Specifies the name that you specified when you created the 3GL procedure and also used when you registered the 3GL procedure. Use this procedure name and create a component for the procedure in OpenROAD Workbench. This name does not refer to the name of the file in which the procedure is stored but to the procedure itself.
For more information about creating components for 3GL procedures in OpenROAD Workbench, see the Workbench User Guide.
In the following example, the callproc statement calls the 3GL procedure named my3glprocedure:
callproc my3glprocedure;
When the procedure returns a value, you can specify a variable in the calling frame or procedure to receive the return value. The return variable must be a simple variable of the same data type as the return value.
In the following example, returnvalue is an integer variable:
returnvalue = callproc my3glprocedure;