Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Maximum length of arguments passed to Stata in batch mode

    I'm calling Stata from PowerShell and want to pass some arguments for the do file to be run. The command I run in PowerShell looks like this:

    Code:
    &"C:\Program Files\Stata16\StataSE-64.exe" /e /q do "my/do/file.do" "argument 1" "argument 2" "veeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeery long argument"
    This stops without any hint in the log file.

    After a while of debugging I found out that apparently there is a size limit for the length of the parameters to be passed to Stata in batch mode. Unfortunately, this is not documented on Detailed size limits | Stata.

    Can anyone tell me if this is a limit on the total length of passed arguments or a "per-argument" limit and the exact specification of the limit?
Working...
X