I thought I had sent this, apologize for the the delay. The macro variables are not being passed to the shell script. Thoughts? shell script variable set to export SAS_SERVICES_ENDPOINT=$sas_end_point export AUTHDOMAIN=$Authdomain export ADGROUP=$AdGroup export FID=$Fid export APPID=$AppID export PASSWORD=$Password Password=$(echo -n "Password" | base64); log of sas program, macro variables are set as below * Set values; %macro authUpdate(sas_end_point,AdGroup,Fid,Authdomain,AppID,Password); x "export SAS_SERVICES_ENDPOINT=&sas_end_point"; x "export ADGROUP=&AdGroup"; x "export FID=&FID"; x "export AUTHDOMAIN=&Authdomain"; x "export USERID=&UserID"; x "export PASSWORD=&Password"; /* ... */ x "/cloud/svv001/scenarios/a_sasad/amos/set-pass-viya_Copy2.sh"; %mend; /* User info to update authdomain */ %authUpdate(https://sasviya-dev.apps.test.net/ ,AmosNewOAuth , SASVIYA_100421-88790-PROD ,b28111 ,88821-A-SASVIYA, Password); Shell script variables after sas program is ran. Macro variables are not passed to the shell script + echo > > + export SAS_SERVICES_ENDPOINT= > + SAS_SERVICES_ENDPOINT= > + export AUTHDOMAIN= > + AUTHDOMAIN= > + export ADGROUP= > + ADGROUP= > + export FID= > + FID= > + export APPID= > + APPID= > + genToken > ++ curl -s -k /SASLogon/oauth/token -H 'Content-Type: application/x-www-form-urlencoded' -d grant_type=client_credentials -u client-E4AA2EA2841DC958350A18D59DDCF030:b24830bc88a9ce1fd28bffe3d31ba1d0ba5398701b31ef8730dd70ac5f9de027 > ++ grep -oP '{"access_token":"\K.*?(?=",")' > + export OAUTH_TOKEN= > + OAUTH_TOKEN=
... View more