Consultor Eletrônico



Kbase P17859: Quoter appears not to work as expected when the source and d
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/02/2003
Status: Unverified

SYMPTOM(s):

Quoter appears not to work as expected when the source and destination file names are coded as variables.

Quoter works properly when both source and destination file names are hard coded.

A file with the same name as the output file variable is generated containing the string: "Unable to read <cInputFile>" where cInputFile is the input file variable name.

Executing code similar to:

DEFINE VARIABLE cInputFile AS CHARACTER NO-UNDO INITIAL "jack.d".
DEFINE VARIABLE cOutputFile AS CHARACTER NO-UNDO INITIAL "jill.d".

OS-COMMAND SILENT Quoter cInputFile > cOutputFile.

CAUSE:

The VALUE option was not specified with the source and destination file names

FIX:

Use the VALUE option of the file name variables:

DEFINE VARIABLE cInputFile AS CHARACTER NO-UNDO INITIAL "jack.d".
DEFINE VARIABLE cOutputFile AS CHARACTER NO-UNDO INITIAL "jill.d".

OS-COMMAND SILENT Quoter VALUE(cInputFile) > VALUE(cOutputFile).