XFER  | 
     
  DEVELOPER  | 
  ![]()  | 
| 
   
  | 
  
   
  | 
| 
   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.  | 
| 
   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.  | 
Topic ID: 520140










  
