<?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: data view in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766371#M242870</link>
    <description>&lt;P&gt;But the code you posted did NOT create AR.&amp;nbsp; It created a view named BAD_DATA.&amp;nbsp; When you reference that view you will get AR as a side effect.&lt;/P&gt;
&lt;PRE&gt;922   data work.ar WORK.BAD_DATA / view=WORK.BAD_DATA ;
923     set sashelp.class ;
924     length _Check_ $ 10 ;
925     if name='' then _check_=" Missing" ;
926     put name= _check_= ;
927   run;

NOTE: DATA STEP view saved on file WORK.BAD_DATA.
NOTE: A stored DATA STEP view cannot run under a different operating system.
NOTE: DATA statement used (Total process time):
      real time           0.05 seconds
      cpu time            0.00 seconds


928   data _null_;
929     set ar;
ERROR: File WORK.AR.DATA does not exist.
930   run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


931
932   data _null_;
933     set bad_data;
934   run;

Name=Alfred _Check_=
Name=Alice _Check_=
Name=Barbara _Check_=
Name=Carol _Check_=
Name=Henry _Check_=
Name=James _Check_=
Name=Jane _Check_=
Name=Janet _Check_=
Name=Jeffrey _Check_=
Name=John _Check_=
Name=Joyce _Check_=
Name=Judy _Check_=
Name=Louise _Check_=
Name=Mary _Check_=
Name=Philip _Check_=
Name=Robert _Check_=
Name=Ronald _Check_=
Name=Thomas _Check_=
Name=William _Check_=
NOTE: View WORK.BAD_DATA.VIEW used (Total process time):
      real time           0.05 seconds
      cpu time            0.01 seconds

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.AR has 19 observations and 6 variables.
NOTE: There were 19 observations read from the data set WORK.BAD_DATA.
NOTE: DATA statement used (Total process time):
      real time           0.11 seconds
      cpu time            0.01 seconds


935
936   data _null_;
937     set ar;
938   run;

NOTE: There were 19 observations read from the data set WORK.AR.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Sep 2021 13:10:30 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2021-09-07T13:10:30Z</dc:date>
    <item>
      <title>data view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766369#M242868</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The following code:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data work.ar WORK.BAD_DATA / view=WORK.BAD_DATA ; 
      set SASUSER.acities; 
       length _Check_ $ 10 ; 
       if name='' then _check_=" Missing" ;
       put name= _check_= ; 
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;&lt;/CODE&gt;The code generates&amp;nbsp;&lt;STRONG&gt;work.AR&lt;/STRONG&gt; data set and&amp;nbsp;&lt;STRONG&gt;&lt;CODE class=" language-sas"&gt;WORK.BAD_DATA&lt;/CODE&gt;&lt;/STRONG&gt;&lt;CODE class=" language-sas"&gt;&amp;nbsp;view.&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;&lt;CODE class=" language-sas"&gt;The&amp;nbsp;question&amp;nbsp;is:&lt;/CODE&gt;&lt;/P&gt;&lt;P&gt;Why is the PUT statement not displayed in the log window after submitting the code?&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 13:02:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766369#M242868</guid>
      <dc:creator>Phoenix_LJ</dc:creator>
      <dc:date>2021-09-07T13:02:48Z</dc:date>
    </item>
    <item>
      <title>Re: data view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766371#M242870</link>
      <description>&lt;P&gt;But the code you posted did NOT create AR.&amp;nbsp; It created a view named BAD_DATA.&amp;nbsp; When you reference that view you will get AR as a side effect.&lt;/P&gt;
&lt;PRE&gt;922   data work.ar WORK.BAD_DATA / view=WORK.BAD_DATA ;
923     set sashelp.class ;
924     length _Check_ $ 10 ;
925     if name='' then _check_=" Missing" ;
926     put name= _check_= ;
927   run;

NOTE: DATA STEP view saved on file WORK.BAD_DATA.
NOTE: A stored DATA STEP view cannot run under a different operating system.
NOTE: DATA statement used (Total process time):
      real time           0.05 seconds
      cpu time            0.00 seconds


928   data _null_;
929     set ar;
ERROR: File WORK.AR.DATA does not exist.
930   run;

NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds


931
932   data _null_;
933     set bad_data;
934   run;

Name=Alfred _Check_=
Name=Alice _Check_=
Name=Barbara _Check_=
Name=Carol _Check_=
Name=Henry _Check_=
Name=James _Check_=
Name=Jane _Check_=
Name=Janet _Check_=
Name=Jeffrey _Check_=
Name=John _Check_=
Name=Joyce _Check_=
Name=Judy _Check_=
Name=Louise _Check_=
Name=Mary _Check_=
Name=Philip _Check_=
Name=Robert _Check_=
Name=Ronald _Check_=
Name=Thomas _Check_=
Name=William _Check_=
NOTE: View WORK.BAD_DATA.VIEW used (Total process time):
      real time           0.05 seconds
      cpu time            0.01 seconds

NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set WORK.AR has 19 observations and 6 variables.
NOTE: There were 19 observations read from the data set WORK.BAD_DATA.
NOTE: DATA statement used (Total process time):
      real time           0.11 seconds
      cpu time            0.01 seconds


935
936   data _null_;
937     set ar;
938   run;

NOTE: There were 19 observations read from the data set WORK.AR.
NOTE: DATA statement used (Total process time):
      real time           0.00 seconds
      cpu time            0.00 seconds

&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Sep 2021 13:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766371#M242870</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-07T13:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: data view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766404#M242885</link>
      <description>&lt;P&gt;Show the entire log from running that data step.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hint: to check for missing values use the proper function: Missing;&lt;/P&gt;
&lt;PRE&gt;if missing(name) then _check_=" Missing" ;&lt;/PRE&gt;
&lt;P&gt;Missing works with both character and numeric values and you don't have to worry about using the incorrect comparison for your value.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Sep 2021 14:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766404#M242885</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2021-09-07T14:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: data view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766599#M242971</link>
      <description>Thank you very much for solving my problem.</description>
      <pubDate>Wed, 08 Sep 2021 14:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766599#M242971</guid>
      <dc:creator>Phoenix_LJ</dc:creator>
      <dc:date>2021-09-08T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: data view</title>
      <link>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766602#M242973</link>
      <description>&lt;P&gt;Not sure how you are using this, but it would make more sense to me to have the view be named AR and BAD_DATA be the side effect dataset that is generated.&amp;nbsp; Then when you use the AR view for your analysis you will automatically get the BAD_DATA dataset also and you can then take any required action on that.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Sep 2021 14:59:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/data-view/m-p/766602#M242973</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2021-09-08T14:59:59Z</dc:date>
    </item>
  </channel>
</rss>

