Reading a caller’s local macros from a Stata ado program
Determine whether any mechanism exists for a Stata ado program to read local macros defined in its caller’s context, thereby enabling code invoked via the julia package’s jl ado wrapper to access caller-level locals when interfacing with Julia.
References
However, the same complication prevents one from reading Stata locals from Julia. The workaround just described only goes in one direction, because I know of no way for an ado program to read its caller's local macros.
— Julia as a universal platform for statistical software development
(2404.09309 - Roodman, 2024) in Subsection 4.3, Limitations in accessing Stata objects