BookmarkSubscribeRSS Feed
OGA
Fluorite | Level 6 OGA
Fluorite | Level 6

Hi

 

When user use the bulkload or bulkunload option, they do not set the logdir option which results in nzlogs being saved in the server C:\. I need to set a default directory for these nzlog files so that even though users do not specify a location, it is saved in their work directory H:\temp. 

 

For example, if they specified the logdir, the code would be similar to this:

proc sql;
create table net_air.flights98
       (bulkload=YES bl_options="logdir 'H:\'")
        as select * from sasflt.flt98;
quit;

So I need a way of setting the logdir by default in a config file I guess

 

More details abour the bulkload and bulkunload options below:

https://documentation.sas.com/?docsetId=acreldb&docsetTarget=n119slgt394onmn12yd81pyytvin.htm&docset...

 

Thanks in advance

3 REPLIES 3
JosvanderVelden
SAS Super FREQ
BL_OPTIONS as used here is a data set option. As far as I know it is not possible to set such an option in the sas configuration file.
OGA
Fluorite | Level 6 OGA
Fluorite | Level 6

Hi

 

Thanks for your reply.

Is there any other way to achive what I intend? ie, prevent users from creating logs in the C:\ directory

 

Thanks

ChrisNZ
Tourmaline | Level 20

Writing to C:\ is not a good default setting.

Asking for a global way to alter this sounds like a good idea. Make a proposal in the SASware ballot.

On the other hand, C:\ is often kept off-limit to users by the OS settings. You could check that.

Failing this, a regular deletion of the files can probably be scheduled.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 657 views
  • 0 likes
  • 3 in conversation