Prev: Getting the outcome of a system command into SAS macro variable?
Next: SGF 2010 Proceedings Available
From: laxxy on 27 Mar 2010 15:13 Hi all -- Does anyone know if there is any way to save the current title in a macro variable? eg. to allow smth like this: %macro printsomething(x); %let oldtitle=¤ttitle; title "&x"; * ... print something... ; title "&oldtitle"; %mend; Thanks!!
From: Tom Abernathy on 27 Mar 2010 15:44
On Mar 27, 3:13 pm, laxxy <laxyf...(a)gmail.com> wrote: > Hi all -- > > Does anyone know if there is any way to save the current title in a > macro variable? > > eg. to allow smth like this: > > %macro printsomething(x); > %let oldtitle=¤ttitle; > title "&x"; > * ... print something... ; > title "&oldtitle"; > %mend; > > Thanks!! proc sql noprint; select trim(text) into :title1-:title10 from dictionary.titles where type='T' ; quit; You can also use the view SASHELP.VTITLE if you do not want to use PROC SQL. |