<?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 Managing Blank Datasets in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28671#M5297</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using a macro then you can test the automatic macro variable SQLOBS that will tell you how many observations were generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table x as select * from y where id = &amp;amp;id ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;sqlobs %then %do;&lt;/P&gt;&lt;P&gt;... other steps ...&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise I think we would need to know the details of the other steps to suggest solutions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Oct 2011 23:15:58 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2011-10-12T23:15:58Z</dc:date>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28669#M5295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a scenario where my proc sqls generate 0 records. But there are several steps that are&amp;nbsp; dependant on this resultant datasets like transpose and sql and print. Is there a way to manage blank datasets in a away that there are no errors thrown because of missing fields?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;saspert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 22:45:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28669#M5295</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2011-10-12T22:45:46Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28670#M5296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;dkricond and dkrocond come to mind, however I am unable to remember the specifics circumstances they aid in off hand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc options group=sasfiles; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc options group=errorhandling; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 23:11:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28670#M5296</guid>
      <dc:creator>FriedEgg</dc:creator>
      <dc:date>2011-10-12T23:11:25Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28671#M5297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using a macro then you can test the automatic macro variable SQLOBS that will tell you how many observations were generated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; create table x as select * from y where id = &amp;amp;id ;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%if &amp;amp;sqlobs %then %do;&lt;/P&gt;&lt;P&gt;... other steps ...&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Otherwise I think we would need to know the details of the other steps to suggest solutions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Oct 2011 23:15:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28671#M5297</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-12T23:15:58Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28672#M5298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you use &amp;amp;sqlobs with noprint option. the value of &amp;amp;sqlobs is not right.&lt;/P&gt;&lt;P&gt;You need to remove noprint option if you want to use automatic macro &amp;amp;sqlobs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ksharp&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 06:30:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28672#M5298</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-13T06:30:32Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28673#M5299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually that is not true.&amp;nbsp; It could be true if you were using a select statement without either an INTO or a CREATE, but that is not a real world situation where you would want to count the observations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Oct 2011 13:33:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28673#M5299</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-13T13:33:28Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28674#M5300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi guys,&lt;/P&gt;&lt;P&gt;Here is my macro code -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;original&lt;BR /&gt;%MACRO _CONVERT_MV_TO_ZERO(DATASET);&lt;BR /&gt;PROC STDIZE DATA=&amp;amp;DATASET OUT=&amp;amp;DATASET REPONLY MISSING=0;&lt;BR /&gt;VAR _NUMERIC_;&lt;BR /&gt;RUN;&lt;BR /&gt;%MEND _CONVERT_MV_TO_ZERO;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;modified&lt;/P&gt;&lt;P&gt;%MACRO _CONVERT_MV_TO_ZERO(DATASET);&lt;BR /&gt;%let nums=;&lt;BR /&gt;&amp;nbsp; proc sql noprint;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; select count(*) into :nums&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from dictionary.columns&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; where libname="WORK"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and memname=upcase("&amp;amp;DATASET.")&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and type="num"&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;&lt;BR /&gt;&amp;nbsp; quit;&lt;BR /&gt; &lt;/P&gt;&lt;P&gt;%if &amp;amp;nums. gt 0 %then %do;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PROC STDIZE DATA=&amp;amp;DATASET OUT=&amp;amp;DATASET REPONLY MISSING=0;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR _NUMERIC_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; RUN;&lt;BR /&gt;&amp;nbsp; %end;&lt;BR /&gt;%MEND _CONVERT_MV_TO_ZERO;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think Prod stdize throws an error "No variables to analyze" whenever it encounters a blank dataset -which I dont want to happen. Now after adding the proc sql to count the # of columns, I dont get back the correct results. When I run a proc sql on dictionary.columns, I see all the relevant fields and other metadata. But when I run it on the actual dataset, I get back 0 as the result (&amp;amp;num variable) which is not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions would be appreciated.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;saspert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 20:05:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28674#M5300</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2011-10-14T20:05:14Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28675#M5301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm confused about what you are trying to do.&amp;nbsp; Are you trying to find out if you have any observations or are you trying to find out if you have any variables?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your code is looking for the latter!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 20:14:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28675#M5301</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-14T20:14:20Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28676#M5302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change &lt;/P&gt;&lt;P&gt;%let nums=;&lt;/P&gt;&lt;P&gt;to&lt;/P&gt;&lt;P&gt;%let nums=0;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there are no records selected INTO will not change the value of the target macro variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 20:19:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28676#M5302</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-14T20:19:29Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28677#M5303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;looking for # of numeric columns. now that you ask i wonder if it makes sense to check the obs or the columns. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I know - I need to check for the numeric columns because there maybe three records in the dataset but no numeric columns for proc stdize to work on (see my screenshot).&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/10971iD939BC1E3A1DF587/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="dataset_screenshot.jpg" title="dataset_screenshot.jpg" /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 20:55:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28677#M5303</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2011-10-14T20:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28678#M5304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;oh really? i never knew that. let me check again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be right there but I think my dataset is dropping the numeric variables at the proc transpose step itself. so the macro is running fine but when I get to proc report then it gives me an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/****CURRENT WEEK******/&lt;BR /&gt;proc sql;&lt;BR /&gt;reset noprint;&lt;BR /&gt;create table cw_totals as&lt;BR /&gt;select "Total" as Relationship,&lt;BR /&gt;&amp;nbsp; sum(cmeligcount) as cmeligcount,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; sum(cwhapart) as cwhapart&lt;BR /&gt;from cur_wk;&lt;BR /&gt;quit;&lt;BR /&gt;data cur_wk_fig;&lt;BR /&gt;length relationship $5;&lt;BR /&gt;set cur_wk cw_totals;&lt;BR /&gt;cwhapct=divide(cwhapart,cmeligcount);&lt;BR /&gt;eligc = put(cmeligcount,comma12.);&lt;BR /&gt;hapct = put(cwhapct,percent12.1);&lt;BR /&gt;part= put(cwhapart, comma12.); &lt;BR /&gt;run;&lt;BR /&gt;%_CONVERT_MV_TO_ZERO(cur_wk_fig)&lt;BR /&gt;proc transpose data=cur_wk_fig out=tr_cur_wk_fig&lt;BR /&gt;prefix=TCW&lt;BR /&gt;;&lt;BR /&gt;ID relationship;&lt;BR /&gt;VAR eligc hapct part;&lt;BR /&gt;run;&lt;BR /&gt;/* run the same code for the current week data */&lt;BR /&gt;/* merge in the same information for the current week by relationship */&lt;/P&gt;&lt;P&gt;data tr_cur_wk_fig;&lt;BR /&gt;length title $60 ;&lt;BR /&gt;set tr_cur_wk_fig;&lt;BR /&gt;select (_name_);&lt;BR /&gt;when ("eligc")&amp;nbsp; title="Eligible Count";&lt;BR /&gt;when ("hapct")&amp;nbsp; title="Population HA Completion Percentage";&lt;BR /&gt;when ("part")&amp;nbsp; title="Participants with a Completed HA";&lt;BR /&gt;otherwise;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;proc sort data=tr_cur_wk_fig;&lt;BR /&gt;by _name_;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;%_CONVERT_MV_TO_ZERO(work.tr_cur_wk_fig)&lt;/P&gt;&lt;P&gt;data overview;&lt;BR /&gt;merge tr_cuml_fig(in=a) tr_cur_wk_fig(in=b);&lt;BR /&gt;by _name_;&lt;BR /&gt;if a and b then output;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%_CONVERT_MV_TO_ZERO(work.overview)&lt;/P&gt;&lt;P&gt;/* produce the proc report */&lt;BR /&gt;proc report data=overview nowd&lt;BR /&gt;&amp;nbsp; style(header)=[just=center font_face=arial foreground=white bordercolor=black background=#003300 font_weight=bold];&lt;BR /&gt;columns title ("Cummulative" TCMLtotal TCML0 TCML1) ("Current Week" TCWtotal TCW0 TCW1); &lt;BR /&gt;define title / display "Health Assessment Completion Overview" right;&lt;BR /&gt;define TCMLtotal / display "Eligible Population" right;&lt;BR /&gt;define TCML0 / display "Employees" right;&lt;BR /&gt;define TCML1 / display "Spouses/Domestic Partners" right;&lt;BR /&gt;define TCWtotal / display "Eligible Population" right;&lt;BR /&gt;define TCW0 / display "Employees" right;&lt;BR /&gt;define TCW1 / display "Spouses/Domestic Partners" right;&lt;BR /&gt;run;&lt;BR /&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CUR_WK_FIG dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="448"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="76"&gt;relationship&lt;/TD&gt;&lt;TD width="105"&gt;CMELIGCOUNT&lt;/TD&gt;&lt;TD width="85"&gt;CWHAPART&lt;/TD&gt;&lt;TD width="56"&gt;cwhapct&lt;/TD&gt;&lt;TD width="43"&gt;eligc&lt;/TD&gt;&lt;TD width="40"&gt;hapct&lt;/TD&gt;&lt;TD width="43"&gt;part&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Total&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD align="right"&gt;0&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TR_CUR_WK_FIG dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="372"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="17" width="243"&gt;title&lt;/TD&gt;&lt;TD width="60"&gt;_NAME_&lt;/TD&gt;&lt;TD width="69"&gt;TCWTotal&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Eligible Count&lt;/TD&gt;&lt;TD&gt;eligc&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Population HA Completion Percentage&lt;/TD&gt;&lt;TD&gt;hapct&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="17"&gt;Participants with a Completed HA&lt;/TD&gt;&lt;TD&gt;part&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; .&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am not adding more confusion. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;saspert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 20:57:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28678#M5304</guid>
      <dc:creator>saspert</dc:creator>
      <dc:date>2011-10-14T20:57:07Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28679#M5305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry about my last naive question.&amp;nbsp; Yes, what you are doing makes sense and I agree with Tom's suggestoin.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In answer to your current question, no. proc transpose will still result with numeric variables .. just more of them (i.e., times the number of ids).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 22:12:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28679#M5305</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2011-10-14T22:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28680#M5306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is a little hard to figure out the purpose of the different steps.&lt;/P&gt;&lt;P&gt;But it seems to me that should move the call to zero out the numeric variables BEFORE the step where you are converting them to character variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%_CONVERT_MV_TO_ZERO(cur_wk_fig)&lt;/P&gt;&lt;P&gt;data cur_wk_fig;&lt;/P&gt;&lt;P&gt;length relationship $5;&lt;/P&gt;&lt;P&gt;set cur_wk cw_totals;&lt;/P&gt;&lt;P&gt;cwhapct=divide(cwhapart,cmeligcount);&lt;/P&gt;&lt;P&gt;eligc = put(cmeligcount,comma12.);&lt;/P&gt;&lt;P&gt;hapct = put(cwhapct,percent12.1);&lt;/P&gt;&lt;P&gt;part= put(cwhapart, comma12.); &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe even before take the sums.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 23:43:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28680#M5306</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2011-10-14T23:43:22Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28681#M5307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simpler (and slightly more efficient) way to find the number of numeric variables in a table is to query DICTIONARY.TABLES for the num_numeric column.&amp;nbsp; This has the added benefit in that, if there are 0 numeric columns, the query actually returns a 0 value.&amp;nbsp; Something like this would probably do the trick:&lt;/P&gt;&lt;PRE&gt; 
proc sql;
select num_numeric
&amp;nbsp;&amp;nbsp; into :nums
&amp;nbsp;&amp;nbsp; from DICTIONARY.TABLES
&amp;nbsp;&amp;nbsp; where libname="WORK"
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; and memname="%QUPCASE(&amp;amp;DATASET)")
;
quit;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Oct 2011 19:29:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28681#M5307</guid>
      <dc:creator>SASJedi</dc:creator>
      <dc:date>2011-10-16T19:29:02Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28682#M5308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. I tested it. Using create table...&amp;nbsp; can also return the right sqlobs I never think about it.&lt;/P&gt;&lt;P&gt;But Actually you do not need noprint any more ,since you create table that will defaultly give no print.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Oct 2011 05:24:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28682#M5308</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-10-18T05:24:46Z</dc:date>
    </item>
    <item>
      <title>Managing Blank Datasets</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28683#M5309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ksharp&lt;/P&gt;&lt;P&gt;the &lt;STRONG&gt;noprint &lt;/STRONG&gt;is important if you want to load&lt;STRONG&gt; into :macroVariable &lt;/STRONG&gt;because that &lt;EM&gt;cannot &lt;/EM&gt;work with &lt;STRONG&gt;create (&lt;/STRONG&gt;unless you are happy to have a report of the &lt;STRONG&gt;select &lt;/STRONG&gt;query results in the output)&lt;/P&gt;&lt;P&gt;peterC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2011 13:57:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Managing-Blank-Datasets/m-p/28683#M5309</guid>
      <dc:creator>Peter_C</dc:creator>
      <dc:date>2011-10-19T13:57:49Z</dc:date>
    </item>
  </channel>
</rss>

