Kbase 18444: Full Path Required for Quoter on Windows -- Error 293
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  10/16/2008 |
|
Status: Verified
FACT(s) (Environment):
Windows 32 Intel
Windows NT 32 Intel/Windows 2000
SYMPTOM(s):
Problems with quoter when trying to create a .q if no .q has previously been created.
** "<file-name>" was not found. (293)
CAUSE:
The problem arises when trying to create a .q file for the first time Progress fails to pick up the executable %DLC%\bin\quoter.exe even when the path is specified in PROPATH.
For example, using the $DLC\src\prodoc\proghand\p-chgin3.p with the p-datf13.d file will result in the error, 'p-datf13.q was not found (293). To test this remove the SILENT option from the OS-COMMAND statement and run. In the MS-DOS window the 'Bad command or file name' message appears. However if the .q file does exist then this code will work without error.
For Example:
/* p-chgin3.p */
DEFINE VARIABLE data AS CHARACTER FORMAT "x(78)".
OS-COMMAND SILENT quoter p-datf13.d > p-datf13.q.
INPUT FROM p-datf13.q NO-ECHO.
REPEAT:
CREATE customer.
SET data WITH NO-BOX NO-LABELS NO-ATTR-SPACE WIDTH 80.
ASSIGN cust-num = INTEGER(SUBSTRING(data,1,2))
name = SUBSTRING(data,4,17)
sales-rep = SUBSTRING(data,22,3).
END.
INPUT CLOSE.
/* end p-chgin3.p */
FIX:
To solve this problem the quoter.exe needs to be referenced fully (%DLC%\bin\quoter) in the code.