Hi, is there a way to insert date after "Date Extraction:" below,
Use a macro variable, and double quotes:
%let date = %sysfunc(today(),yymmdd10.);
proc odstext;
p "Source:"/ style=[color=blue fontsize=12pt fontfamily='Courier New' fontweight=bold];
list;
item "Master Database, Date Extraction: &date." / style=[fontsize=11pt fontfamily='Courier New'];
end;
run;
Hint: use single quotes in SAS only where explicitly needed, or if you need to prevent the resolution of macro triggers.
a macro variable for start?
%let date=%sysfunc(int('14mar2024'd),yymmdd10.);
proc odstext;
p 'Source:'/ style=[color=blue fontsize=12pt fontfamily='Courier New' fontweight=bold];
list;
item "Master Database, Date Extraction: &date." / style=[fontsize=11pt fontfamily='Courier New'];
end;
run;
Bart
Use a macro variable, and double quotes:
%let date = %sysfunc(today(),yymmdd10.);
proc odstext;
p "Source:"/ style=[color=blue fontsize=12pt fontfamily='Courier New' fontweight=bold];
list;
item "Master Database, Date Extraction: &date." / style=[fontsize=11pt fontfamily='Courier New'];
end;
run;
Hint: use single quotes in SAS only where explicitly needed, or if you need to prevent the resolution of macro triggers.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.