<?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 _NULL_ in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65695#M18732</link>
    <description>Using the "data _null_;" tells SAS that no dataset is to be created.  Create the dataset ("data mydataset;) then you use "proc print data=mydataset;" to print it.</description>
    <pubDate>Wed, 15 Jun 2011 11:56:10 GMT</pubDate>
    <dc:creator>jj030655</dc:creator>
    <dc:date>2011-06-15T11:56:10Z</dc:date>
    <item>
      <title>data _NULL_</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65691#M18728</link>
      <description>Dear all,&lt;BR /&gt;
&lt;BR /&gt;
I've this code:&lt;BR /&gt;
&lt;BR /&gt;
PROC UNIVARIATE DATA=TEMP normal;&lt;BR /&gt;
      BY AGEGRP GENDER;&lt;BR /&gt;
      VAR SCORE1 SCORE2 SCORE3;&lt;BR /&gt;
      OUTPUT OUT=OUTSTATS N=N1 N2 N3&lt;BR /&gt;
                          MEAN=MEAN1 MEAN2 MEAN3&lt;BR /&gt;
                          STD=STD1 STD2 STD3&lt;BR /&gt;
                          MEDIAN=MEDIAN1 MEDIAN2 MEDIAN3&lt;BR /&gt;
                          NORMAL=NORMAL1 NORMAL2 NORMAL3;&lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
DATA _NULL_;&lt;BR /&gt;
      SET OUTSTATS  ; &lt;BR /&gt;
 IF _N_=1 THEN DO;&lt;BR /&gt;
            PUT 'Table of Univariate Statistics';&lt;BR /&gt;
            PUT '--------------------------------------------------------------';&lt;BR /&gt;
            PUT @1 'Age' @8 'Gender' @16 'Measure'  @26 'N' @32 'Mean'&lt;BR /&gt;
            @38 'Std Dev' @47 'Median' @55 'Normality Test';&lt;BR /&gt;
            PUT '--------------------------------------------------------------';&lt;BR /&gt;
            PUT ' ';&lt;BR /&gt;
      END;&lt;BR /&gt;
      FORMAT MEAN1-MEAN3 STD1-STD3 MEDIAN1-MEDIAN3 Z5.2 NORMAL1-NORMAL3 5.2;&lt;BR /&gt;
      IF NORMAL1&amp;lt;.95 THEN NTEXT1='Not Normal'; ELSE NTEXT1='Normal';&lt;BR /&gt;
      IF NORMAL2&amp;lt;.95 THEN NTEXT2='Not Normal'; ELSE NTEXT2='Normal';&lt;BR /&gt;
      IF NORMAL3&amp;lt;.95 THEN NTEXT3='Not Normal'; ELSE NTEXT3='Normal';&lt;BR /&gt;
      PUT @1 AGEGRP @8 GENDER @;&lt;BR /&gt;
      PUT @16 'Score1' @24 N1 @32 MEAN1 @40 STD1 @48 MEDIAN1 @56 NORMAL1 @64 NTEXT1;&lt;BR /&gt;
      PUT @16 'Score2' @24 N2 @32 MEAN2 @40 STD2 @48 MEDIAN2 @56 NORMAL2 @64 NTEXT2;&lt;BR /&gt;
      PUT @16 'Score3' @24 N3 @32 MEAN3 @40 STD3 @48 MEDIAN3 @56 NORMAL3 @64 NTEXT3;&lt;BR /&gt;
      PUT ' ';&lt;BR /&gt;
	  	 &lt;BR /&gt;
RUN;&lt;BR /&gt;
&lt;BR /&gt;
I would like to print the "results" of the data _null_ not adding the statement "file print;" but with a proc print. How can I do it? &lt;BR /&gt;
&lt;BR /&gt;
Thanks in advance</description>
      <pubDate>Fri, 13 May 2011 13:04:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65691#M18728</guid>
      <dc:creator>L_L</dc:creator>
      <dc:date>2011-05-13T13:04:47Z</dc:date>
    </item>
    <item>
      <title>Re: data _NULL_</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65692#M18729</link>
      <description>Suggest using the DATA step logic you have, creating a new file (or adding variables to the same input file, as preferred), then in the DATA step, assign your SAS variables based on the logic you have already coded.&lt;BR /&gt;
&lt;BR /&gt;
The output will be a file that is suitable to use with PROC PRINT, while seeing that you will need likely to code some LABEL, FORMAT, VAR statements to replicate as close as possible your DATA step code.&lt;BR /&gt;
&lt;BR /&gt;
Suggest you give the idea a try, then post back to the forum with a modified SAS routine for feedback/guidance, if needed.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
proc print documentation site:sas.com</description>
      <pubDate>Fri, 13 May 2011 16:30:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65692#M18729</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2011-05-13T16:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: data _NULL_</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65693#M18730</link>
      <description>Maybe I've to use the CALL SYMPUT, I've tried but without results..</description>
      <pubDate>Fri, 13 May 2011 20:18:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65693#M18730</guid>
      <dc:creator>L_L</dc:creator>
      <dc:date>2011-05-13T20:18:54Z</dc:date>
    </item>
    <item>
      <title>Re: data _NULL_</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65694#M18731</link>
      <description>You can use proc report + line statement to stead with proc print ,If you like.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Ksharp</description>
      <pubDate>Mon, 16 May 2011 05:29:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65694#M18731</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2011-05-16T05:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: data _NULL_</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65695#M18732</link>
      <description>Using the "data _null_;" tells SAS that no dataset is to be created.  Create the dataset ("data mydataset;) then you use "proc print data=mydataset;" to print it.</description>
      <pubDate>Wed, 15 Jun 2011 11:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/data-NULL/m-p/65695#M18732</guid>
      <dc:creator>jj030655</dc:creator>
      <dc:date>2011-06-15T11:56:10Z</dc:date>
    </item>
  </channel>
</rss>

