Consultor Eletrônico



Kbase 32966: How to use a variable value with the 4GL statement, OS-COMMAND
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Solution ID: P2966

GOAL:

How to use a variable value with the 4GL statement, OS-COMMAND

FIX:

To use the 4GL statement OS-COMMAND with a variable that supplies the command-token, note the following:

a) The syntax, OS-COMMAND myvar., will not perform the myvar value.

b) To use the value of the variable you must use OS-COMMAND in combination with the VALUE Option.

For example:

DEF VAR I AS CHAR FORMAT "x(50)" INIT "dir *.*".
OS-COMMAND VALUE(I).