Hi,
When we execute our sas di flows we see a huge sas work usage (1 TB) even though we generally enable the "Create as View" option on transformation output ports in DI Studio? and in the end/table loader write output to SQL database. Our system has crashed several times because of insufficient space in work area.
My question is why "create as view" seems to use a lot af SAS work space? what is best practice using "create as View" or options to effective write to a SQL database via Standard Table loader?
What is best practice ?
We are running 9.4 M6 on Linux
Thanks in advance.
Yes. Additionally, consider to create the intermediate datasets in a permanent library (so you avoid cluttering up WORK) and remove them in a later step.
Creating a SQL view takes next to no time and almost no resources at all, but using the view will mean it has to be executed, and depending on the complexity, this will make heavy use of WORK and UTILLOC locations, as is typical for SAS SQL. If you use the view in an already complex query, you'll quickly get into trouble.
The usual remedies are
If that does not fix it, you may have to resort to a user-written transformation as a last measure.
Yes. Additionally, consider to create the intermediate datasets in a permanent library (so you avoid cluttering up WORK) and remove them in a later step.
Registration is now open for SAS Innovate 2025 , our biggest and most exciting global event of the year! Join us in Orlando, FL, May 6-9.
Sign up by Dec. 31 to get the 2024 rate of just $495.
Register now!
Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.
Find more tutorials on the SAS Users YouTube channel.