- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
I have a SAS program, Save_Audit_History, I created several months ago in Viya SAS Studio (using the Develop SAS Code option in the Viya application menu).
I scheduled the code to execute on a schedule in the Jobs application in Environment Manager (Manage Environment in the Viya menu). I scheduled it by selecting the New option on the Scheduling tab and then selecting the job by browsing to it in the New Job window.
The job recently started getting errors due to CAS data limit. I added the code
options casdatalimit=500M;
to increase the limit.
When the scheduled job runs, it still fails. When I look at the log for the job, it does not contain my new code.
Do I need to create a new job every time I change the code for a program?
Thanks!
Jerry
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
FILENAME Statement: FILESRVC Access Method
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0qapul7pyz9hmn0zfoefj0c278a...
Greg Wootton | Principal Systems Technical Support Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Try wrapping the proc sql command in its casl sibling proc fedsq.
proc cas;
source MPG_toyota;
'your sql command'
endsource;
fedSQL.execDirect / query=MPG_toyota;
quit;
start from my example
proc cas;
source MPG_toyota;
create table public.sum22{options replace=true} as
select a.sales_res as feb_sales_res, b.sales_res, case when round(a.sales_res-b.sales_res,3)=0 then 1 else 0 end as flag
from RISKNOBA.REMA_FEB22_FMT_OUT a inner join RISKNOBA.REMA_DEC21_FMT_OUT b
on a.bastidor=b.bastidor ;
endsource;
fedSQL.execDirect / query=MPG_toyota;
quit;
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
So making these changes to the code will not be seen by the job.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
FILENAME Statement: FILESRVC Access Method
https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsglobal/p0qapul7pyz9hmn0zfoefj0c278a...
Greg Wootton | Principal Systems Technical Support Engineer
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
That is what I suspected.
Good suggestion on using an %include.
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
the best practice to optimize the work.
😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- RSS Feed
- Permalink
- Report Inappropriate Content
Greg Wootton | Principal Systems Technical Support Engineer