Description

Executes U2 functions on the U2 back end. This function returns Intercall status codes and sets @FILE.ERROR with error details.

Syntax

result = U2_ExecProc(VolumeID, Command, Buffer, Reply, Interactive)

Parameters

The function has the following parameters:

ParameterDescription
VolumeIDVolume pointer name to base the virtual session on.
CommandThe server command line to execute.
BufferThe buffer contains the return data resulting from the command.

Returns

Status Codes

CodeDescription
-1Invalid arguments.
0Execution complete. This does not necessarily mean that the procedure was successful.
1General failure. @FILE.ERROR will contain detailed information.
nOther. See Intercall Documentation.

Remarks

The buffer can handle lengths up to 2048 characters.

See also

U2 Functions

Example

declare function u2_execproc
 
VolumeID = 'mylaptop6100b:UV'
 
Command = 'RUN BP LIST.INDEX'
 
buffer = ''
 
result =  u2_execProc(VolumeID, Command, Buffer)
 
* get rid of extra spaces
 
buffer = trim(buffer)
 
x = msg(@window, trim(Buffer) )
  • No labels