Blocking .lst output

Reply
Contributor
Posts: 40

Blocking .lst output

Hi,

does anyone knows how to block .lst output in SAS 9.3. (Win). I am running batch program and simply don't need .lst.

Thanks Smiley Wink

Super Contributor
Posts: 644

Re: Blocking .lst output

Why are you creating List output?  Are there Proc Print or similar steps you could comment out?

List output can be redirected: you might like to investigate redirecting to NUL

Richard

Contributor
Posts: 40

Re: Blocking .lst output

thanks for fast response.

I will paste part of my script:

%macro vol;

%do i= 41958 %to 42817 ;

proc mixed data=zsimspermchr_29;

class  bull_id dob stanica skupio godina mjesec skok TLA;

model  vol = dob stanica skupio godina mjesec skok TLA snpz_&i/solution;

random bull_id/solution;

ods output solutionf = estvol;

run;

data estimatevol_&i;

set estvol;

keep effect Estimate StdErr df tValue Probt;

if effect ^= "snpz_&i" then delete;

dm 'out;clear;log;clear;';

run;

%end;;

%mend vol;

%vol

run;

Super Contributor
Posts: 644

Re: Blocking .lst output

A quick scan of Proc mixed doco does not show any default list (printed) output - but I'm no expert in this area.  There does not seem to be a NOPRINT option either.  My suspicion is that the ODS output statement is also producing list output.  You may need to suppress ODS listing.

Why not run your code without deleting the listing?  That would give you a clue where the source is.

Richard

Contributor
Posts: 40

Re: Blocking .lst output

ok,

i figured it out Smiley Happy

i just put before macro: ods listing close;

trivial...

Thanks Richard for pointing out ODS

Ask a Question
Discussion stats
  • 4 replies
  • 185 views
  • 3 likes
  • 2 in conversation