<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Can I add the userid to the physical work directory name? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95962#M20182</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like Ron, I wouldn't know why anyone would want to transfer %sysget(eVar) to &amp;amp;eVar especially when an eVar&amp;nbsp; might not be valid as a macro variable name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to load all eVars to a table, I use&lt;/P&gt;&lt;P&gt;data env_vars ;&lt;/P&gt;&lt;P&gt; length name $40 value $1024 ;&lt;/P&gt;&lt;P&gt; infile 'set ' device= pipe lrecl=2048 truncover ;&lt;/P&gt;&lt;P&gt; input ; list;&lt;/P&gt;&lt;P&gt; pos = find( _infile_, '=' ) ;&lt;/P&gt;&lt;P&gt; if pos ; * sometimes there is no = ;&lt;/P&gt;&lt;P&gt; name&amp;nbsp; = substr( _infile_,1, pos-1 ) ;&lt;/P&gt;&lt;P&gt; value = substr( _infile_, pos+1 ) ;&lt;/P&gt;&lt;P&gt; * call symputx( name, value) ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;The LIST statement provides a useful echo of all eVars into the SASlog&lt;/P&gt;&lt;P&gt;uncomment the call symputx() if you want all eVars as macro variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Apr 2013 21:48:34 GMT</pubDate>
    <dc:creator>Peter_C</dc:creator>
    <dc:date>2013-04-04T21:48:34Z</dc:date>
    <item>
      <title>Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95951#M20171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if this post should be here or in SAS Deploy.&amp;nbsp; Apologies if it should go there instead of here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have end users that can't get the concept of a Cartesian product.&amp;nbsp; In the worst case scenario, our work space gets filled, ETL jobs bomb, and everyone gets angry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, I know I can jump through some hoops to get the owner of a particular physical work directory.&amp;nbsp; What I'm wondering is if there is some edit I can do to the global configuration file so that the userid that owns the particular SAS process is also a part of the physical name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IOW, I want to change this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_TD10996_MYSERVERNAME_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;_TD10996_&lt;STRONG&gt;USERID&lt;/STRONG&gt;_MYSERVERNAME_&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Can this be done?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 03:24:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95951#M20171</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-04-03T03:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95952#M20172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All our work and SAS Util directories are on a specific drive on our server reserved just for that purpose.&amp;nbsp; This prevents a runaway job from consuming space on a single communal drive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SAS creates the work sub-directories under this root directory.&amp;nbsp; Since SAS obviously knows the process ID, and since the process ID has an owner, I was hoping to coax SAS into adding that owner to the generated physical directory name.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 06:15:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95952#M20172</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-04-03T06:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95953#M20173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The userid is stored in the automatic macro variable &amp;amp;SYSUSERID.&amp;nbsp; The data set name becomes something like:&lt;/P&gt;&lt;P&gt;_TD10996_&amp;amp;SYS&lt;STRONG&gt;USERID.&lt;/STRONG&gt;_MYSERVERNAME_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 06:16:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95953#M20173</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2013-04-03T06:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95954#M20174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Art,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) The SAS Work and SAS Util directories are created upon SAS invocation.&amp;nbsp; I don't believe &amp;amp;sysuserid would be available at that time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) If this understanding is incorrect, how would you set this in the system wide configuration file?&amp;nbsp; I know I can set the -work and -util root directories, but I believe _TD_&amp;lt;processid&amp;gt;_&amp;lt;machinename&amp;gt;_ is baked into SAS.&amp;nbsp; I was hoping there is some unknown to me option that would allow me to change this naming convention.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess there could be some repercussions I need to think about.&amp;nbsp; For example, it could break the "cleanwork" utility. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Scott&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 06:25:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95954#M20174</guid>
      <dc:creator>ScottBass</dc:creator>
      <dc:date>2013-04-03T06:25:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95955#M20175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;Another way to handle this maybe?!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We created another server context (SASAppBatch) for our batches. That server context has its own work (and own file system) which will make batches and other "important" taskt to always run.&lt;/P&gt;&lt;P&gt;Users have no acces to this server context&amp;nbsp; and are restricted to use SASApp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We also have other memory settings on this context so that all tasks will run without problems!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//Fredrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 14:19:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95955#M20175</guid>
      <dc:creator>FredrikE</dc:creator>
      <dc:date>2013-04-03T14:19:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95956#M20176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;-SET SASROOT "C:\Program Files\SASHome\SASFoundation\9.3"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;examine your configuration file:&lt;/P&gt;&lt;P&gt;!sasroot\nls\en\sasv9.cfg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and find the definition of the various work options and environmental variables (-set):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-SET MYSASFILES "?CSIDL_PERSONAL\My SAS Files\9.3"&lt;/P&gt;&lt;P&gt;-SASUSER "?CSIDL_PERSONAL\My SAS Files\9.3"&lt;/P&gt;&lt;P&gt;-WORK "!TEMP\SAS Temporary Files"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;note: ?CSIDL_PERSONAL&lt;/P&gt;&lt;P&gt;is.a API call&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solution:&lt;/P&gt;&lt;P&gt;create a personal sasv9.cfg file&lt;/P&gt;&lt;P&gt;and, for your use,&lt;/P&gt;&lt;P&gt;add your UserId into the path name(s)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instructions are on this page:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sascommunity.org/wiki/Batch_processing_under_Windows" title="http://www.sascommunity.org/wiki/Batch_processing_under_Windows"&gt;http://www.sascommunity.org/wiki/Batch_processing_under_Windows&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron Fehd startup maven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 14:46:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95956#M20176</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2013-04-03T14:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95957#M20177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ron&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really hope you might be able to come along and judge my paper in systems architecture&lt;/P&gt;&lt;P&gt;Configuring foundation SAS Clients easily and with less risk&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to invade the teritory your link describes&amp;nbsp; (I'm sorry) without any reference to your community article.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope you'll agree that the new paper is adding some new ideas that are worth hearing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(it should also become available on Takeout if your schedule is overloaded)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 15:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95957#M20177</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-04-03T15:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95958#M20178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Peter&lt;/P&gt;&lt;P&gt;I would be glad to monitor your paper.&lt;/P&gt;&lt;P&gt;Plz send me an e-mail with your day and time.&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:Ron.Fehd.macro.maven@gmail.com"&gt;Ron.Fehd.macro.maven@gmail.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Apr 2013 16:56:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95958#M20178</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2013-04-03T16:56:03Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95959#M20179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Teach me not to read the question more closely.&amp;nbsp; Might there be a system environmental variable that contains that information?&amp;nbsp; If so then it could be used in Ron's solution, and thus avoiding multiple CFG files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 18:23:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95959#M20179</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2013-04-04T18:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95960#M20180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;like Ron, I have a -WORK that does not define the machine name, but it still appears in the directory name generated by SAS for the work directory that it uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;although &amp;amp;SYSUSERID is not available BEFORE SAS starts, among environment variables on my machine (default vista business) is USERNAME which looks like the source for &amp;amp;SYSUSERID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;adapting the invocation of SAS to use a -work like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-WORK "!TEMP\SAS Temporary Files\!userName"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;achieved exactly what Scott seeks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C:\Users\{user account reduced to 8.3 name}\AppData\Local\Temp\SAS Temporary Files\{full user account ID}\_TD{processID}_{computer name}_&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 21:18:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95960#M20180</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-04-04T21:18:13Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95961#M20181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Art&lt;/P&gt;&lt;P&gt;Yes, we can!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are some of the Windows Environment Variables that can be fetched with %sysget&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%put ComputerName: %sysget(ComputerName);&lt;/P&gt;&lt;P&gt;%put LogOnServer: %sysget(LogOnServer);&lt;/P&gt;&lt;P&gt;%put UserDomain: %sysget(UserDomain);&lt;/P&gt;&lt;P&gt;%put UserName: %sysget(UserName);&lt;/P&gt;&lt;P&gt;%put UserProfile: %sysget(UserProfile);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%Let Evar = temp;&lt;/P&gt;&lt;P&gt;%put &amp;amp;Evar %sysget(&amp;amp;Evar);&lt;/P&gt;&lt;P&gt;%Let Evar = tmp;&lt;/P&gt;&lt;P&gt;%put &amp;amp;Evar %sysget(&amp;amp;Evar);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ron Fehd&amp;nbsp; Eeek!-Var maven&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;refer to&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://www.sascommunity.org/wiki/Category:Environment_Variables" title="http://www.sascommunity.org/wiki/Category:Environment_Variables"&gt;http://www.sascommunity.org/wiki/Category:Environment_Variables&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;btw: why do we want to assign Unix Evars to Mvars?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 21:21:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95961#M20181</guid>
      <dc:creator>Ron_MacroMaven</dc:creator>
      <dc:date>2013-04-04T21:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: Can I add the userid to the physical work directory name?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95962#M20182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Like Ron, I wouldn't know why anyone would want to transfer %sysget(eVar) to &amp;amp;eVar especially when an eVar&amp;nbsp; might not be valid as a macro variable name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to load all eVars to a table, I use&lt;/P&gt;&lt;P&gt;data env_vars ;&lt;/P&gt;&lt;P&gt; length name $40 value $1024 ;&lt;/P&gt;&lt;P&gt; infile 'set ' device= pipe lrecl=2048 truncover ;&lt;/P&gt;&lt;P&gt; input ; list;&lt;/P&gt;&lt;P&gt; pos = find( _infile_, '=' ) ;&lt;/P&gt;&lt;P&gt; if pos ; * sometimes there is no = ;&lt;/P&gt;&lt;P&gt; name&amp;nbsp; = substr( _infile_,1, pos-1 ) ;&lt;/P&gt;&lt;P&gt; value = substr( _infile_, pos+1 ) ;&lt;/P&gt;&lt;P&gt; * call symputx( name, value) ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;The LIST statement provides a useful echo of all eVars into the SASlog&lt;/P&gt;&lt;P&gt;uncomment the call symputx() if you want all eVars as macro variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Apr 2013 21:48:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-I-add-the-userid-to-the-physical-work-directory-name/m-p/95962#M20182</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2013-04-04T21:48:34Z</dc:date>
    </item>
  </channel>
</rss>

