Purpose

XFER transfers control of processing to an external program.  Control does not return to PROIV.
 

Syntax

#var-name = XFER(program)
 

Operation

#var-name is a scratch variable in which a return code indicating the status, success or failure, of the call is to be placed. A return code of 0 (zero) indicates success; any other value indicates failure.
program
 is the name of a program to be called, or a variable containing the name of the program. Literal values must be enclosed in quotes.
 

Remarks

 

 

Example 1

#NC = XFER("prog1"). On a PC this command calls program prog1.
 

Example 2

#NC = XFER($PROG1). On a PC this command calls the program with the name contained in $PROG1.
 

 

It is your responsibility to ensure the external program exists. If the external program is not found, PROIV is left in an undefined state.

 

Comment on this topic

Topic ID: 520140

Table of Contents

Index

Glossary

-Search-

Back