I am running a shell script via X command within a SAS macro. I want to use a macro variable defined in SAS macro, in my shell script. I know if I pass that macro variable as parameter to shell script, I can resolve that within X command.
For ex: Following will work fine, I know
X "abc.sh &var1";
echo "value is $1" > myfile.txt
BUT WHAT I WANT IS:
echo "value is &val1" > myfile.txt
IS there any way to resolve macro variable in shell script. I did my research but couldn't find anything.