Kbase 21072: Windows Scripting Limit Affects Progress Proutil Batch File
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  2/14/2011 |
|
Status: Verified
SYMPTOM(s):
You have not supplied a parameter for argument <ARG>. (1403)
Error when running "proutil" from a Windows command prompt.
Error when running "mbpro" from a Windows command prompt.
Error when running "mpro" from a Windows command prompt.
Error when running "pro" files from a Windows command prompt.
FACT(s) (Environment):
Windows 32 Intel
Windows NT 32 Intel/Windows 2000
Progress 9.x
CAUSE:
Proutil, for example, is a batch file that calls the _proutil.exe executable. Only 9 tokens can be passed to a batch file. This is a limit of the script language, not a Progress limit. Other affected Progress batch files are pro/mpro/mbpro which call the _progres.exe character client executable.
In this example:
proutil sports -C idxbuild all -B 100 -T C:\temp -TB 6
sports is the first token and -TB is the ninth token. This syntax generates the 1403 error.
If the ninth token is a value, all the parameters after it will be ignored. This could cause disk space problems for temp files, for example, as the temp files will be created in the working directory. For example:
proutil sports -C idxbuild -TB 30 -TM 32 -B 1000 -T c:\temp
Here, sports is the first token and 1000 is the ninth token. The -T c:\temp will be ignored. The temporary files will be placed in the Working Directory.
FIX:
Use any of the following methods to work around the script limitation:
-- Use _proutil instead of proutil (or _progres instead of pro/mbpro/mpro).
-- Use a .pf file for parameters.
-- Redirect all options from a .txt file. For example:
proutil sports -C idxbuild -TB -T -B < options.txt