Allow passing parameters to a program with `sasjs run` using same `--source` option as for `sasjs job execute`
jbodart-argenx opened this issue · comments
Jean-Michel Bodart commented
sasjs job execute
allows to pass parameters with the following option:
--source
(alias-s
) - Provide the path to an input JSON containing job variables, structured as follows:
{"macroVars": {"varname": "value", "var2": "val2"}}
It would be beneficial to have the same option available with sasjs run
.
Allan Bowe commented
Thanks @jbodart-argenx
To clarify, this is the way that we will implement this feature:
- The
sasjs run
command, if-s
is present, will convert all the name/value pairs into%let var=value;
SAS statements - These statements will be injected as pre-code before being submitted to SAS