Consultor Eletrônico



Kbase P2966: How to use a variable value with the 4GL statement, OS-COMMAND?
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   17/12/2004
Status: Verified

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).