DATA Step, Macro, Functions and more

Removing display of the whole data set from output file

Accepted Solution Solved
Reply
Occasional Contributor
Posts: 10
Accepted Solution

Removing display of the whole data set from output file

Hi,

I have a very trivial problem again. After creating a data set from a library input I perform a frequency procedure. In the SAS Output file, the frequency tables are shown after the data set has been completely listed. Is there any possible to omit the release of the complete dataset.

Data multimorbid;

     set libraryxy.file;

/*** manipulation of the data ***/

....

proc frecquency;

     Tables VAR;

run;

Best,

Dennis


Accepted Solutions
Solution
‎03-24-2013 02:06 PM
Respected Advisor
Posts: 4,920

Re: Removing display of the whole data set from output file

It must be something you do in the /*** manipulation of the data ***/ part because a datastep doesn't generate a listing, unless you ask for it.

PG

PG

View solution in original post


All Replies
Solution
‎03-24-2013 02:06 PM
Respected Advisor
Posts: 4,920

Re: Removing display of the whole data set from output file

It must be something you do in the /*** manipulation of the data ***/ part because a datastep doesn't generate a listing, unless you ask for it.

PG

PG
Valued Guide
Posts: 634

Re: Removing display of the whole data set from output file

I am going to take a guess at what you want here.  Take a look at the WHERE data set option.  This option allows you to subset the data so that only the portion needed is used.

proc freq data=sashelp.class(where=(name<'M'));

table sex*age;

run;

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 158 views
  • 3 likes
  • 3 in conversation