Dear Expert,
In SASStudio, I tried to clone git repo by invoking git command via x statement, but return 'git command not found error', seems SAS will search the git command on the compute server that current SAS session connecting to. I connected to compute server pod shell, but it even have no dnf command, so how to install git on compute server?
the code:
data _null_;
x "git clone giturl localdir";
run;
Thanks!
Ok, found a indirectly way to do so, just build a static git command under the NFS folder /data/sascode which can be accessed by computer server as mapped folder /sascode, then this git command can be executed on compute server now:
static built git command is the key, it does not need the third party components which are not available on compute server.
You could use git_clone() instead, see https://documentation.sas.com/doc/de/pgmsascdc/9.4_3.5/lefunctionsref/n10pxql65jtf4sn11m3d6jzcrgcz.h... for details.
Hope Viya will provide a simple way to let user install other software that can be invoked by x statement.
Thanks, yes, but where can I add --depth or other git option with this way?
Ok, found a indirectly way to do so, just build a static git command under the NFS folder /data/sascode which can be accessed by computer server as mapped folder /sascode, then this git command can be executed on compute server now:
static built git command is the key, it does not need the third party components which are not available on compute server.
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.
Find more tutorials on the SAS Users YouTube channel.