<?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: DBPROMPT for SAS Studio in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908266#M11178</link>
    <description>&lt;P&gt;I don't know how well it would work but there's this from the SAS Github repository:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sassoftware.github.io/sas-studio-tasks/prompts/" target="_self"&gt;https://sassoftware.github.io/sas-studio-tasks/prompts/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't try it myself as our servers are blocked from going through our firewalls and proxies.&lt;/P&gt;</description>
    <pubDate>Fri, 15 Dec 2023 17:18:54 GMT</pubDate>
    <dc:creator>Nigel_Pain</dc:creator>
    <dc:date>2023-12-15T17:18:54Z</dc:date>
    <item>
      <title>DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908062#M11170</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;My organization mostly uses the old school SAS Windowing Environment for running programs. A lot of these programs that connect to ORACLE DB &lt;U&gt;have a prompt window that allows the user to type in the name and password&lt;/U&gt; and then after successfully entered, the program runs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a solution for SAS Studio to display a window prompt so a user can type in their username / pw to connect to Oracle?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DBPrompt=yes;&amp;nbsp; works for SAS Windowing Environment.&lt;/P&gt;&lt;P&gt;DBPrompt=yes; doesn't work for SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a solution for SAS Studio to also display a window prompt for username and password?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any input!&lt;/P&gt;&lt;P&gt;Kaleb&lt;/P&gt;</description>
      <pubDate>Thu, 14 Dec 2023 20:01:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908062#M11170</guid>
      <dc:creator>KalebF</dc:creator>
      <dc:date>2023-12-14T20:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908166#M11171</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using SAS Studio to submit code on a SAS 9.4 server?&lt;BR /&gt;Or are you using SAS Studio to submit code on a SAS Viya server?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The DBPROMPT= LIBNAME Statement Option&lt;BR /&gt;is not applicable to SAS Viya.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 10:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908166#M11171</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-12-15T10:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908193#M11172</link>
      <description>&lt;P&gt;The way I've seen that done normally:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;DB access is via a functional user&lt;/LI&gt;
&lt;LI&gt;The credentials are stored in a SAS Authdomain (SAS Metadata)&lt;/LI&gt;
&lt;LI&gt;Users use the authdomain instead of the userid/pw in the libname (if not pre-assigned)&lt;/LI&gt;
&lt;LI&gt;The SAS metadata security model needs to be such that only users in defined groups get read access to the authdomain&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Normally DBA's prefer this approach as it removes the need for user management/sync with SAS on the DB side.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you really need individual user credentials with a Studio version where prompts are not available then one option would be for users to create environment variables with their credentials in their .profile.&lt;BR /&gt;In SAS code you then could use these environment variables instead of the SAS macro variables from the prompt. Or you could amend the autoexec and look for such environment variables (which will exist and have values set depending on the user who initiates the SAS session) and populates the macro variables as previously the prompt did.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;....just giving you some ideas.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 15:36:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908193#M11172</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-15T15:36:07Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908196#M11173</link>
      <description>We are using SAS Studio 9.4 server.</description>
      <pubDate>Fri, 15 Dec 2023 14:37:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908196#M11173</guid>
      <dc:creator>KalebF</dc:creator>
      <dc:date>2023-12-15T14:37:23Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908201#M11174</link>
      <description>Thank you for your post.&lt;BR /&gt;The macro variable idea works and what i'm using now. It seems like SAS studio 9.4 isn't able to prompt a user like SAS windowing environment 9.4. Rather, they'd have to enter it into a macro statement. I was hoping for a prompt approach so that when saving programs someone doesn't inadvertently save their passwords in the program.</description>
      <pubDate>Fri, 15 Dec 2023 14:44:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908201#M11174</guid>
      <dc:creator>KalebF</dc:creator>
      <dc:date>2023-12-15T14:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908203#M11175</link>
      <description>&lt;P&gt;The most common approach is using an authdomain instead of explicit user credentials.&lt;/P&gt;
&lt;P&gt;Using an authdomain in SAS 9.4 will also allow for an uncomplicated migration path to SAS Viya and Cloud.&lt;BR /&gt;&lt;A href="https://blogs.sas.com/content/sgf/2017/08/17/sas-viya-sharing-credentials-for-database-access/" target="_blank" rel="noopener"&gt;https://blogs.sas.com/content/sgf/2017/08/17/sas-viya-sharing-credentials-for-database-access/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 14:53:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908203#M11175</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2023-12-15T14:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908252#M11176</link>
      <description>&lt;P&gt;You should be able to make a TASK in SAS/Studio that allows entry of information.&amp;nbsp; Just be careful as I am not sure if there are ways to make the password secure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a picture of an example:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Tom_0-1702658799967.png" style="width: 999px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/91473i25A130187F2D852D/image-size/large?v=v2&amp;amp;px=999" role="button" title="Tom_0-1702658799967.png" alt="Tom_0-1702658799967.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 16:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908252#M11176</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2023-12-15T16:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908262#M11177</link>
      <description>&lt;P&gt;Good idea from&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's how to do that:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;SAS® Studio 5.2: Developer’s Guide to Writing Custom Tasks
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/api/docsets/webeditordg/5.2/content/webeditordg.pdf" target="_blank"&gt;https://go.documentation.sas.com/api/docsets/webeditordg/5.2/content/webeditordg.pdf&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://go.documentation.sas.com/doc/en/webeditorcdc/5.2/webeditordg/titlepage.htm" target="_blank"&gt;https://go.documentation.sas.com/doc/en/webeditorcdc/5.2/webeditordg/titlepage.htm&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;/LI&gt;
&lt;LI&gt;Paper CT13 (from phuse-connect)&lt;BR /&gt;Next generation collaboration: using tasks and snippets in SAS Studio&lt;BR /&gt;Fatima Kassim, OCS Life Sciences, ’s-Hertogenbosch, The Netherlands&lt;BR /&gt;&lt;A href="https://www.lexjansen.com/phuse/2019/ct/CT13.pdf" target="_blank"&gt;https://www.lexjansen.com/phuse/2019/ct/CT13.pdf&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;Tasks are based on the common task model (CTM), which&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;consists of XML (metalanguage that allows for custom mark-up language&lt;/STRONG&gt;&lt;SPAN&gt;) and Velocity Template Language (VTL or Apache Velocity language). Each task, SAS-supplied or custom, is based on such a CTM file.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By the way ... I also don't know about the security.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Something I tried out of curiosity --&amp;gt; the macro windowing environment (%window and %display).&lt;/P&gt;
&lt;P&gt;Test Result was negative ... these do not work in SAS Studio!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Koen&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 17:06:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908262#M11177</guid>
      <dc:creator>sbxkoenk</dc:creator>
      <dc:date>2023-12-15T17:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908266#M11178</link>
      <description>&lt;P&gt;I don't know how well it would work but there's this from the SAS Github repository:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sassoftware.github.io/sas-studio-tasks/prompts/" target="_self"&gt;https://sassoftware.github.io/sas-studio-tasks/prompts/&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can't try it myself as our servers are blocked from going through our firewalls and proxies.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Dec 2023 17:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908266#M11178</guid>
      <dc:creator>Nigel_Pain</dc:creator>
      <dc:date>2023-12-15T17:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: DBPROMPT for SAS Studio</title>
      <link>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908831#M11179</link>
      <description>This is probably about as close to a solution to what I had in mind. But due to security issues, I most likely won't be able to implement it in good conscience. But thank you Tom and to all others who posted. I got some ideas.. and learned the limitations. Thanks!</description>
      <pubDate>Tue, 19 Dec 2023 15:16:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/DBPROMPT-for-SAS-Studio/m-p/908831#M11179</guid>
      <dc:creator>KalebF</dc:creator>
      <dc:date>2023-12-19T15:16:46Z</dc:date>
    </item>
  </channel>
</rss>

