Salesforce

Windows Scripting Limit Affects Batch File execution error 1403

Information

 
TitleWindows Scripting Limit Affects Batch File execution error 1403
URL Name21072
Article Number000122110
EnvironmentProduct: Progress OpenEdge
Version: All supported versions
OS: Windows
Question/Problem Description
Progress Batch File execution fails with error 1403 when more than 9 tokens are used in the command line
When a Progress Batch file has more than 9 tokens parameters are ignored
Error 1403 when running "proutil" from a Windows command prompt.
Error 1403 when running "mbpro" from a Windows command prompt.
Error 1403 when running "mpro" from a Windows command prompt.
Error 1403 when running "pro" files from a Windows command prompt.
Steps to Reproduce
Clarifying Information
Error MessageYou have not supplied a parameter for argument <ARG>. (1403)
Defect Number
Enhancement Number
Cause
PROUTIL 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, sports is the first token and -TB is the ninth token which generates the 1403 error:
proutil sports -C idxbuild all -B 100 -T C:\temp -TB 6

When 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. In this example, 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:
proutil sports -C idxbuild -TB 30 -TM 32 -B 1000 -T c:\temp

Performance problems may also become a factor if the tokens that are not processed are performant parameters for example threading or sorting tokens 
Resolution
Use any of the following methods to work around the script limitation:
  • Use the executable instead of the batch file:
    • _proutil instead of proutil
    • _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
  • Modify the batch script.  An example is provided in Article  How to modify the PROBKUP script to accept more than 9 parameter arguments?   
Workaround
Notes
   
Keyword Phrase
Last Modified Date11/20/2020 7:37 AM

Powered by