![]() |
Production Ready Macros for SAS Application Developers
https://github.com/sasjs/core
|
Extract the source code from a SAS Viya Job. More...
Go to the source code of this file.
Extracts the SAS code from a Job into a fileref or physical file. Example:
%mv_getjobcode( path=/Public/jobs ,name=some_job ,outfile=/tmp/some_job.sas )
[in] | access_token_var= | The global macro variable to contain the access token |
[in] | grant_type= | valid values: password authorization_code detect - will check if access_token exists, if not will use sas_services if a SASStudioV session else authorization_code. Default option. sas_services - will use oauth_bearer=sas_services |
[in] | path= | The SAS Drive path of the job |
[in] | name= | The name of the job |
[out] | outref= | A fileref to which to write the source code |
[out] | outfile= | A file to which to write the source code |
Definition in file mv_getjobcode.sas.