<?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: SAS Output in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398357#M19419</link>
    <description>&lt;P&gt;Figure out why your surveylogistic procedure is failing.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 24 Sep 2017 07:23:57 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2017-09-24T07:23:57Z</dc:date>
    <item>
      <title>SAS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398354#M19418</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I use syntax below to run multiple variables - it was fine before but now I keep seeing these warnings:&lt;/P&gt;&lt;P&gt;[[&lt;/P&gt;&lt;P&gt;NOTE: The data set WORK.U has 1 observations and 0 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.01 seconds&lt;BR /&gt;cpu time 0.00 seconds&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ERROR: There are no valid observations.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: PROCEDURE SURVEYLOGISTIC used (Total process time):&lt;BR /&gt;real time 0.00 seconds&lt;BR /&gt;cpu time 0.01 seconds&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;WARNING: Output 'SurveyLogistic.OddsRatios' was not created. Make sure that the output object&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;name, label, or path is spelled correctly. Also, verify that the appropriate procedure&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;options are used to produce the requested output object. For example, verify that the&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;NOPRINT option is not used.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;ERROR: File WORK.OUT_TABLE.DATA does not exist.]]&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please advise what should be revised to have correct output.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro part(varlist,outc,adj);&lt;BR /&gt;data u;run;&lt;BR /&gt;%let i=1;&lt;BR /&gt;%let var=%scan(&amp;amp;varlist,&amp;amp;i);&lt;BR /&gt;%do %while(&amp;amp;var NE);&lt;BR /&gt;proc surveylogistic data=bigone;&lt;BR /&gt;class &amp;amp;var(ref=first) &amp;amp;adj(ref=first);&lt;BR /&gt;model &amp;amp;outc(desc)=&amp;amp;var &amp;amp;adj ;&lt;BR /&gt;weight popwgt;&lt;BR /&gt;ods output SurveyLogistic.OddsRatios=out_table;&lt;BR /&gt;run;&lt;BR /&gt;data u;&lt;BR /&gt;set u out_table;&lt;BR /&gt;run;&lt;BR /&gt;%let i=%eval(&amp;amp;i+1);&lt;BR /&gt;%let var=%scan(&amp;amp;varlist,&amp;amp;i);&lt;BR /&gt;%end;&lt;BR /&gt;%mend;&lt;/P&gt;&lt;P&gt;%macro all;&lt;BR /&gt;%let vv= q7_MEIM_2cat ;&lt;BR /&gt;%let oo= impfm_2y_2cat ;&lt;BR /&gt;%let aa= impfm_1y_2cat&amp;nbsp;;&lt;BR /&gt;%let j=1;&lt;BR /&gt;%let foo=%scan(&amp;amp;oo,&amp;amp;j);&lt;BR /&gt;%let faa=%scan(&amp;amp;aa,&amp;amp;j);&lt;BR /&gt;%do %while (&amp;amp;foo NE);&lt;BR /&gt;%part(&amp;amp;vv,&amp;amp;foo,&amp;amp;faa);&lt;BR /&gt;data r&amp;amp;j;&lt;BR /&gt;set u;&lt;BR /&gt;title="&amp;amp;foo";&lt;BR /&gt;run;&lt;BR /&gt;PROC EXPORT DATA= WORK.R&amp;amp;j&lt;BR /&gt;OUTFILE= "c:\data\hduong\aa\aa\Table3a"&lt;BR /&gt;DBMS=EXCEL REPLACE;&lt;BR /&gt;SHEET="r&amp;amp;j";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;%let j=%eval(&amp;amp;j+1);&lt;BR /&gt;%let foo=%scan(&amp;amp;oo,&amp;amp;j);&lt;BR /&gt;%let faa=%scan(&amp;amp;aa,&amp;amp;j);&lt;BR /&gt;%end;&lt;BR /&gt;%mend ;&lt;BR /&gt;%all;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 06:43:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398354#M19418</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2017-09-24T06:43:12Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398357#M19419</link>
      <description>&lt;P&gt;Figure out why your surveylogistic procedure is failing.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 07:23:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398357#M19419</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-24T07:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398358#M19420</link>
      <description>&lt;P&gt;what you meant and how?&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 07:29:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398358#M19420</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2017-09-24T07:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398360#M19421</link>
      <description>&lt;P&gt;Determine which run causes your SURVEYLOGISTIC proc to fail.&lt;/P&gt;
&lt;P&gt;Run the macro with options MPRINT and SYMBOLGEN to see the full details.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;if it's been running previously and isn't now, it's most likely a data issue. We don't have your data and therefore can't tell you what's causing the issue.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That being said, I'm assuming this is true and not checking your code for syntax errors.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 07:45:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398360#M19421</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2017-09-24T07:45:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398362#M19422</link>
      <description>&lt;P&gt;I think the error is [ERROR: File WORK.OUT_TABLE.DATA does not exist.]&lt;/P&gt;&lt;P&gt;I do some google search and see that many reported the same - file [out_table] is not recognized or linked.&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 07:56:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398362#M19422</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2017-09-24T07:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Output</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398370#M19423</link>
      <description>&lt;P&gt;I figured it out.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Hao&lt;/P&gt;</description>
      <pubDate>Sun, 24 Sep 2017 09:32:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/SAS-Output/m-p/398370#M19423</guid>
      <dc:creator>haoduonge</dc:creator>
      <dc:date>2017-09-24T09:32:54Z</dc:date>
    </item>
  </channel>
</rss>

