<?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: How to stop sas view to access all datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607752#M176737</link>
    <description>&lt;P&gt;Interesting.&amp;nbsp; Devious admins.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose it's possible they applied a SAS native password to the underlying datasets, and provide the password when they define the view.&amp;nbsp; With that, I think you'd be out of luck for reading the datasets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They could have done something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have (pw=foo);
  set sashelp.class ;
run ;

data haveview /view=haveview ;
  set have (pw=foo);
run ;

data view=haveview ;
  describe ;
run ;

proc print data=haveview ;
run ;

proc print data=have ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With that, you can read HAVEVIEW, but you can't read HAVE.&amp;nbsp; And if you describe the view, SAS shows you that there is a password, but (sensibly) doesn't let you see it in the log:&lt;/P&gt;
&lt;PRE&gt;17   data view=haveview ;
18     describe ;
19   run ;

NOTE: DATA step view WORK.HAVEVIEW is defined as:

data haveview /view=haveview ;
   set have (pw=XXX);
run ;
&lt;/PRE&gt;
&lt;P&gt;I think Mark is right, the admins might have you in too tight a box to do what you want.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Nov 2019 15:54:34 GMT</pubDate>
    <dc:creator>Quentin</dc:creator>
    <dc:date>2019-11-27T15:54:34Z</dc:date>
    <item>
      <title>How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607719#M176724</link>
      <description>&lt;P&gt;Dear SAS community&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on a server, where I retrieve the data I need from a view. The view is a panel data, where we observe different persons over several years. What I discovered is that the view is connected to several other, smaller data sets, where there is one data set for each year. I can see this from the log as it shows me:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;NOTE. There were 100000000 observations read from the data set example.example2000
NOTE. There were 100000000 observations read from the data set example.example2001
NOTE. There were 100000000 observations read from the data set example.example2002
...
NOTE. There were 100000000 observations read from the data set example.example2020&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I retrieve data from this view, I seldomly need all years, say 2000-2010. Since there are several million observations, I would like to stop SAS from reading from all years, but with a where statement I can still see from the log that it reads all the datasets. Example of my code is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
    create table my_table as
        select * from example.example
    where year&amp;gt;=2000 and year&amp;lt;=2010 ;
quit ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Something that quadrouples the run time is if I put the where statement in the "from", if I want to do some additional calculations, An example is shown below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
    create table my_table as
        select this as that, this_1 as that_2 ...
        from (select this, this_1 ..., from example.example 
                 where year&amp;gt;=2000 and year&amp;lt;=2010) ;
quit ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What I would like to know is if it is possible for me to tell SAS when I read from a view which data sets it should (or should not) access? So I could tell it something like (pseudocode):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
    create table my_table as
        select * from example.example
    where view acces databases: example.example2000, example.example2001 ... example.example2010;
quit ;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:00:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607719#M176724</guid>
      <dc:creator>Gexern</dc:creator>
      <dc:date>2019-11-27T15:00:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607720#M176725</link>
      <description>&lt;P&gt;A specific attribute of a view is that it "hides" the underlying tables to make access easier.&lt;/P&gt;
&lt;P&gt;If you already know the tables involved, define your own view with only those and use that.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:03:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607720#M176725</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-27T15:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607723#M176726</link>
      <description>&lt;P&gt;Ah yes, that would be ideal. But I have only access to the views, access to other folders on the server is restricted.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:07:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607723#M176726</guid>
      <dc:creator>Gexern</dc:creator>
      <dc:date>2019-11-27T15:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607730#M176728</link>
      <description>&lt;P&gt;Then the designers of your SAS server have created a problem that only they can mitigate.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:21:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607730#M176728</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-11-27T15:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607731#M176729</link>
      <description>&lt;P&gt;SAS has two types of views: SQL views and data step views. Both can be described, and both require access to the underlying tables to work.&lt;/P&gt;
&lt;P&gt;If you are not allowed to access dataset A, view B that tries to read dataset A will also fail.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:23:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607731#M176729</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-27T15:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607737#M176730</link>
      <description>&lt;P&gt;As Kurt said, since the view is working, you must have read access to the underlying SAS datasets (at the OS level).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That said, since you're on a SAS server, it's possible that your libref is a metadata library, and is only showing you the names of SAS tables (views and datasets) that have been registered in the metadata.&amp;nbsp; It's possible that the underlying SAS datasets have not been registered in the metadata, so you wouldn't see them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you switch to writing your own native OS libname statement, you should be able to see the underlying SAS datasets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are, I think, lock-down modes which an admin can set to preclude you from being able to write your own libname statement.&amp;nbsp; If they've done that, then you may be forced to have a discussion with them.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:37:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607737#M176730</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-11-27T15:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607739#M176731</link>
      <description>&lt;P&gt;Im not sure what to tell you, but I don't have access to the underlying tables. The views are called "SAS Data Set View".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I go into the folder that have all the datasets that the view access, I can see all the datasets. But if I try to open/access one of them, I am asked for a password, which I am not allowed to get. So my only access to the underlying data is through the view. I guess there is no solution to the problem then sadly.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:39:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607739#M176731</guid>
      <dc:creator>Gexern</dc:creator>
      <dc:date>2019-11-27T15:39:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607743#M176733</link>
      <description>&lt;P&gt;See how to describe a data step view:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* create the view */
data class/view=class;
set sashelp.class;
run;

/* describe the view */
data view=class;
describe;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Log from this:&lt;/P&gt;
&lt;PRE&gt;73         /* create the view */
 74         data class/view=class;
 75         set sashelp.class;
 76         run;
 
 NOTE: DATA STEP view saved on file WORK.CLASS.
 NOTE: A stored DATA STEP view cannot run under a different operating system.
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.00 seconds
       
 
 77         
 78         /* describe the view */
 79         data view=class;
 80         describe;
 81         run;
 
 NOTE: DATA step view WORK.CLASS is defined as:
 
 data class/view=class;
    set sashelp.class;
 run;
 
 
 NOTE:  Verwendet wurde: DATA statement - (Gesamtverarbeitungszeit):
       real time           0.00 seconds
       cpu time            0.01 seconds
&lt;/PRE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:42:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607743#M176733</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-11-27T15:42:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607749#M176735</link>
      <description>&lt;P&gt;Sounds like they are using the view to hide password from you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Perhaps you can ask them to create more views. Either views for each year. Or multiple year views that cover viewer years and you can pick the one that works best for you.&amp;nbsp; Or perhaps just totally rebuild the system using some that will work better for your use case. Like putting the data into an actual database. Or at least rebuild the SAS datasets using the SPD engine so that it could be configured to use YEAR as a way to partition the data so that when you filter by year you only have to read the disk blocks that have those year's data.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:53:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607749#M176735</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-27T15:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607750#M176736</link>
      <description>&lt;P&gt;So this is interesting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The view I am accessing is a SQL-view, so if I do&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc sql ;
    describe view example.example ;
quit ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It tells me something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;SQL view example.example is defined as:
select var1, var2, ..., varX from example.exampleA
using libname example "some_path" ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;So the path "some_path" is where I found all the data sets that I need a password to access. But it says it doesn't read from them, but from another view called example.exampleA.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I find this&amp;nbsp;example.exampleA it is also a view, but a Data step view. If i try to do:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data view=example.exampleA ;
    describe ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get the some error like "ERROR: Libref example is not assigned" and "FATAL: Undetermined execution error detected in the execution of the DATA step program. Aborted during the AUTO-LOADING STORED PROGRAM pahse."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I guess they REALLY don't want me to access the datasets themselves, but it is interesting that the SQL-view reffres to a DATA-view that I again cannot access.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:53:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607750#M176736</guid>
      <dc:creator>Gexern</dc:creator>
      <dc:date>2019-11-27T15:53:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607752#M176737</link>
      <description>&lt;P&gt;Interesting.&amp;nbsp; Devious admins.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I suppose it's possible they applied a SAS native password to the underlying datasets, and provide the password when they define the view.&amp;nbsp; With that, I think you'd be out of luck for reading the datasets.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;They could have done something like:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have (pw=foo);
  set sashelp.class ;
run ;

data haveview /view=haveview ;
  set have (pw=foo);
run ;

data view=haveview ;
  describe ;
run ;

proc print data=haveview ;
run ;

proc print data=have ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;With that, you can read HAVEVIEW, but you can't read HAVE.&amp;nbsp; And if you describe the view, SAS shows you that there is a password, but (sensibly) doesn't let you see it in the log:&lt;/P&gt;
&lt;PRE&gt;17   data view=haveview ;
18     describe ;
19   run ;

NOTE: DATA step view WORK.HAVEVIEW is defined as:

data haveview /view=haveview ;
   set have (pw=XXX);
run ;
&lt;/PRE&gt;
&lt;P&gt;I think Mark is right, the admins might have you in too tight a box to do what you want.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 15:54:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607752#M176737</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-11-27T15:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607759#M176740</link>
      <description>Yes, I have given up!</description>
      <pubDate>Wed, 27 Nov 2019 16:00:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607759#M176740</guid>
      <dc:creator>Gexern</dc:creator>
      <dc:date>2019-11-27T16:00:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607761#M176741</link>
      <description>&lt;P&gt;So that is great detective work. Keep going.&lt;/P&gt;
&lt;P&gt;When you use the USING clause in an SQL view the libref (EXAMPLE) used there does not really need to match a real libref.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;select var1, var2, ..., varX from example.exampleA
using libname example "some_path" ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;So take the path from the&amp;nbsp; code and use it to define another libref. Then try to see the data step view definition using your new libref.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname XXX "some_path" access=readonly ;
data view=XXX.exampleA ;
    describe ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 16:07:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607761#M176741</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-27T16:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607779#M176748</link>
      <description>&lt;P&gt;Hmm, I am unable to reproduce the error I got, when I now run:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data view=example.exampleA ;
    describe ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;NOTE: No source statements were found in example.exampleA.view&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I run:&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname XXX "some_path" access=readonly ;

proc contents data=XXX.example2000 ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I get: "READ ACCESS DENIED" and asked for password.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I can run proc contents on the Data Step View:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc contents data=example.exampleA ;
run ;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;But it tells me tha same variables if i'd done it on example.example. The only difference between the SQL view (example.example) and the Data Step view (example.exampleA) is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;ENGINE: SASDSV&lt;/P&gt;&lt;P&gt;DATA Step view type: INPUT&lt;/P&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 27 Nov 2019 16:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607779#M176748</guid>
      <dc:creator>Gexern</dc:creator>
      <dc:date>2019-11-27T16:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607786#M176750</link>
      <description>&lt;P&gt;Looks like they used the SOURCE option to deliberately hide the source code for the view.&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SOURCE=&lt;SPAN class="strong"&gt;source-option&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A name="a002900388" target="_blank"&gt;&lt;/A&gt;specifies one of the following source options:&lt;/P&gt;
&lt;DL&gt;
&lt;DT&gt;&lt;A name="a002900389" target="_blank"&gt;&lt;/A&gt;SAVE&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;&lt;A name="a002900390" target="_blank"&gt;&lt;/A&gt;saves the source code that created a stored compiled DATA step program or a DATA step view.&lt;/P&gt;
&lt;/DD&gt;
&lt;DT&gt;&lt;A name="a002900391" target="_blank"&gt;&lt;/A&gt;ENCRYPT&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;&lt;A name="a002900392" target="_blank"&gt;&lt;/A&gt;encrypts and saves the source code that created a stored compiled DATA step program or a DATA step view.&lt;/P&gt;
&lt;TABLE cellspacing="2" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD width="95" align="left" class="label"&gt;Tip:&lt;/TD&gt;
&lt;TD align="left" class="bgBlockLight"&gt;&lt;A name="a002900393" target="_blank"&gt;&lt;/A&gt;If you encrypt source code, use the ALTER password option as well. SAS issues a warning message if you do not use ALTER.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DD&gt;
&lt;DT&gt;&lt;A name="a002900394" target="_blank"&gt;&lt;/A&gt;NOSAVE&lt;/DT&gt;
&lt;DD&gt;
&lt;P&gt;&lt;A name="a002900395" target="_blank"&gt;&lt;/A&gt;does not save the source code.&lt;/P&gt;
&lt;DL&gt;
&lt;DT&gt;&lt;SPAN class="caution"&gt;CAUTION:&lt;/SPAN&gt;&lt;/DT&gt;
&lt;DD&gt;&lt;SPAN class="strong"&gt;If you use the NOSAVE option for a DATA step view, the view cannot be migrated or copied from one version of SAS to another version.&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&lt;IMG src="http://support.sas.com/documentation/cdl/en/common/63294/HTML/default/images/cautend.gif" border="0" alt="[cautionend]" align="bottom" /&gt;&lt;/DD&gt;
&lt;/DL&gt;
&lt;/DD&gt;
&lt;/DL&gt;
&lt;TABLE cellspacing="2" cellpadding="4"&gt;
&lt;TBODY&gt;
&lt;TR valign="top"&gt;
&lt;TD width="95" align="left" class="label"&gt;Default:&lt;/TD&gt;
&lt;TD align="left" class="bgBlockLight"&gt;&lt;A name="a002900396" target="_blank"&gt;&lt;/A&gt;SAVE&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 16:53:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607786#M176750</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-11-27T16:53:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607791#M176751</link>
      <description>Yes, I do understand why they want to protect the data sets, as if they are changed disaster ensues. But would it be damaging to have read, but not write access? Since if I had read access I could maybe get data from them, but not make any changes?</description>
      <pubDate>Wed, 27 Nov 2019 17:10:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607791#M176751</guid>
      <dc:creator>Gexern</dc:creator>
      <dc:date>2019-11-27T17:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607792#M176752</link>
      <description>Perfectly reasonable to ask for read access, particularly as you have it through the view already.  Of course since they've got through serious lengths to hide the view from you, it's possible they're doing some trickery in the view that they don't want to let you avoid (e.g. masking sensitive data).</description>
      <pubDate>Wed, 27 Nov 2019 17:24:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607792#M176752</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2019-11-27T17:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607795#M176754</link>
      <description>Ah, yes, that would make sense. As it is indeed sensitive data and they "scramble" it before I see it. So it might be that!</description>
      <pubDate>Wed, 27 Nov 2019 17:30:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607795#M176754</guid>
      <dc:creator>Gexern</dc:creator>
      <dc:date>2019-11-27T17:30:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to stop sas view to access all datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607796#M176755</link>
      <description>&lt;P&gt;What you might do is get them to make a view for each yearly dataset (they were yearly datasets, iirc).&amp;nbsp; They could use a single common code to mask what they want to mask in each such view.&amp;nbsp; Then you could just select from a union of the subset of view of interest to you.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It would be a minimal one-time (or one-time per year) effort on the db manager's part.&amp;nbsp; And not only would you save time, but they would conserve a lot of computing resources for use by your colleagues.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Nov 2019 17:34:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-stop-sas-view-to-access-all-datasets/m-p/607796#M176755</guid>
      <dc:creator>mkeintz</dc:creator>
      <dc:date>2019-11-27T17:34:57Z</dc:date>
    </item>
  </channel>
</rss>

