Help using Base SAS procedures

How to open a new SAS log ?

Accepted Solution Solved
Reply
New Contributor
Posts: 4
Accepted Solution

How to open a new SAS log ?

%IF %SYSEVALF(%SUPERQ(ERR_MSG)='DIFFERENT DELIMITER',BOOLEAN)=1 %THEN

%DO;

%PUT      ---------------------------------------------------------------------------------------;

%PUT      PATH = "&ARG.";

%PUT      FILENAME = "&FNAME.";

%PUT      STATISTICS FOR THE DATASET "%SCAN(&SYSLAST.,2,'.')" ;

%PUT      NO. OF OBSERVATIONS = &OBSCOUNT.;

%PUT      NO. OF COLUMNS = &NO_OF_COLS.;

%PUT      COLUMN NAMES = &VLIST.;

%PUT      ---------------------------------------------------------------------------------------;

%END;

I would want the PUT statements to start in a new SAS log but not copied to the sessions's log.

Is there any possibility to work on this particular requirement. Any help would be immensely appreciated.

Thanks,

Shiva.


Accepted Solutions
Solution
‎05-04-2015 11:21 AM
Valued Guide
Posts: 860

Re: How to open a new SAS log ?

Posted in reply to shivasomaram

If there is something you want a separate log for you can write it to another location, it will not show up in your sas session.  I personally don't like the way it's displayed but this may help:

proc printto log="/sas/user_data/general/sandbox/filename.log"; run;

data whatever;

set whatever;

sas code;

run;

proc printto;run;

View solution in original post


All Replies
Solution
‎05-04-2015 11:21 AM
Valued Guide
Posts: 860

Re: How to open a new SAS log ?

Posted in reply to shivasomaram

If there is something you want a separate log for you can write it to another location, it will not show up in your sas session.  I personally don't like the way it's displayed but this may help:

proc printto log="/sas/user_data/general/sandbox/filename.log"; run;

data whatever;

set whatever;

sas code;

run;

proc printto;run;

🔒 This topic is solved and locked.

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

Discussion stats
  • 1 reply
  • 512 views
  • 0 likes
  • 2 in conversation