LogiView

Command 'system'

     

This command forwards the command string to the operating system of the computer. If the function does not perform, an error message specific to the operating system is dispayed in the message bar. This messages are found in e.g. the so-called UNIX "man-pages".

This command must not be called with a conditional instruction.

The syntax of the command must meet the operating system requirements.

If LogiView was called using a function of the ECI (EDB CAx Interface), it might not be possible to send a call to the operating system.

 

Syntax:

  system({STR_EXPR}) or
system({STR_EXPR},{INT_VAR})
 

I/O parameters:

{STR_EXPR} Operating system command to be executed.
{INT_VAR} Return code (can also be an array element, e.g. DOCU_INT_ARRAY_1[1])
 

Return value:

 
-  
In case of an error the LogiView decision table/procedure is aborted when "System({STR_EXPR})" is used. In order to avoid this and to perform an error code-dependent action, the command has been extended by the parameter {INT_VAR}.
 

Example:

  Declaration of Variables
 

UNIX:

10 DOCU_INT_1 = 0
.. ..
50 system("mv test.dat $edb_tmp/ap.doc",DOCU_INT_1)
60 if (DOCU_INT != 0)then
70   ..
..   ..
90 endif
  Result:
  The 'test.dat' file is moved to the '$edb_tmp' directory resp. 'edb$tmp' and renamed to 'ap.doc'. If this is not possible, an error code (>0, see man pages for command "mv") is returned which can be intercepted using an if-query.

Functions and commands: Operating System Interface