SYSTEM-CRT  | 
   DEVELOPER  | 
Trail: PROIV Documentation > Developer > PROIV Developer > Developing Functions > Events and Logic > SYSTEM-CRT
| 
 
  | 
 
  | 
| 
 Purpose  | 
 SYSTEM-CRT passes a command to the operating system and provides for screen refreshing.   | 
| 
 Syntax  | 
 RC = SYSTEM-CRT(statement)  | 
| 
 Operation  | 
 RC is the scratch variable containing a return code indicating the status, success or failure, of the call itself  (and not the success or failure of any program called).   | 
| 
 Remarks  | 
 The value of the return code depends upon the operating system; usually a return code of 0 (zero) indicates success. This command is typically used to call an externally defined program.  When the external program has finished, control can be returned to PROIV.  | 
| 
 Example 1  | 
 #RC = SYSTEM-CRT("prog1")   This command calls program prog1.  | 
| 
 Example 2  | 
 #ST = SYSTEM-CRT("cp filea fileb")   This command copies the contents of filea to fileb.  | 
Topic ID: 520125