Hi,
from below how can i get systask command log separately in different path(sas_code.sas)
data a;
set b;
run;
systask command "/sas/abcd/sasgsub -GRIDSUBMITPGM /sasdata/path/CODE/sas_code.sas" taskname=Oracle1A status=auths;
data c;
set b;
run;
Thanks,
Kenneth.
HI,
Below worked fine.
systask command "/sas/SASGMCU/sasgsub -GRIDSUBMITPGM /sasdata/path/CODE/sas_code.sas -gridsasopts ""(-altlog /sasdata/path/CODE/sas_code.log)""" taskname=sas_code1A status=auths;
Thanks,
Kenneth.
By using below code:
data a;
set b;
run;
systask command "/sas/abcd/sasgsub -GRIDWAITRESULTS -GRIDSUBMITPGM /sasdata/path/CODE/sas_code.sas -GRIDRESULTSDIR /sasdata/path/LOG" taskname=Oracle1A status=auths;
data c;
set b;
run;
exicuting good, RC=0 but getting below error: (it's trying to copy to "/sasgrid/SASBASEP/config/Lev2/SASBaseApp/sas_code.log." which i didn't specify anywhere.
> Grid job complete.
> 889562 (sas_code) is Finished: Submitted: 10Aug2023:00:53:26, Started: 10Aug2023:00:53:30 on Host dpds1222a, Ended:
10Aug2023:00:53:31, RC:0
> Moving job information to
"/sasdata/path/LOG/SASGSUB-2023-08-10_00.53.26.852_sas_code"
>
> Copying log and output to current directory.
> Grid job return code is 0 (0x0)
> ERROR: Insufficient authorization to access /sasgrid/SASBASEP/config/Lev2/SASBaseApp/sas_code.log.
NOTE: LOG/Output from task "Oracle1A"
is there a way:-
-GRIDWAITRESULTS is copying folder (SASGSUB-2023-08-10_00.53.26.852_sas_code) which has code, log, Job info. Is there a way where it can copy only log.
Folder & other details in folder not required.
Thanks.
HI,
Below worked fine.
systask command "/sas/SASGMCU/sasgsub -GRIDSUBMITPGM /sasdata/path/CODE/sas_code.sas -gridsasopts ""(-altlog /sasdata/path/CODE/sas_code.log)""" taskname=sas_code1A status=auths;
Thanks,
Kenneth.
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.