04-09-2018 12:30 AM
04-09-2018 12:32 AM
04-09-2018 01:36 AM
Check next skilton:
%let title_flag = 1; /* initiate title flag to be printed */
%if &title_flag = 1 %then %do;
%let title_flag =0;
title ..... ;
%end; %else %str(title; /* clear titles */
...... your macro program ......
04-09-2018 06:34 AM
As @Shmuel suggested, use a blank title statement to lear the titles. But I would suggest making the code a bit simpler:
%macro whatever; Title '<your inititial title here>'; %do <assuming you have your print statements in a loop>; <proc print statements here>; Title; %end; %mend;
In other words, just clear the titles at the end of every iteration; an empty TITLE statement is not very expensive.