Help using Base SAS procedures

suppress %put.....

Accepted Solution Solved
Reply
Super Contributor
Super Contributor
Posts: 464
Accepted Solution

suppress %put.....

hello,

any way I can  suppress  the %put  from the log below?

 

3247  %PUT DATE IN HEADER & TRAILER IS &HEADER2;
           DATE IN HEADER & TRAILER IS 2018-07-02
3248  %PUT COUNT OF RECORDS IN TRAILER IS  &TRAILER1;
           COUNT OF RECORDS IN TRAILER IS  00000709196
3249  %PUT COUNT OF RECORDS OF SAS GENEARTED FILE IS  &COUNT;
           COUNT OF RECORDS OF SAS GENEARTED FILE IS    709196
3250  %PUT LAST DATE OF PREVIOUS MONTH IS  &LAST_POLICY_DATE;
           LAST DATE OF PREVIOUS MONTH IS  20180701

 

and  have  this only?


           DATE IN HEADER & TRAILER IS 2018-07-02
           COUNT OF RECORDS IN TRAILER IS  00000709196
           COUNT OF RECORDS OF SAS GENEARTED FILE IS    709196
           LAST DATE OF PREVIOUS MONTH IS  20180701

 

Thanks Smiley Happy


Accepted Solutions
Solution
2 weeks ago
Super User
Super User
Posts: 8,093

Re: suppress %put.....

You can turn off the echo of the source code.  But you will probably want to turn it back on again.

options nosource ;
%put Hello there! ;
options source ;

View solution in original post


All Replies
Solution
2 weeks ago
Super User
Super User
Posts: 8,093

Re: suppress %put.....

You can turn off the echo of the source code.  But you will probably want to turn it back on again.

options nosource ;
%put Hello there! ;
options source ;
Super Contributor
Super Contributor
Posts: 464

Re: suppress %put.....

thank you sir!

☑ This topic is solved.

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

Discussion stats
  • 2 replies
  • 102 views
  • 0 likes
  • 2 in conversation