DATA Step, Macro, Functions and more

Quotation marks (in footnote) inside macros disable macros

Accepted Solution Solved
Reply
Regular Contributor
Posts: 214
Accepted Solution

Quotation marks (in footnote) inside macros disable macros

[ Edited ]

Hi all,

 

Could you please help with the Note that disable work of a macros. It is the first note inside the log:

 

%macro test;
... 304 footnote1 %str(N = number of subjects in the safety analysis set.); 305 footnote2 %bquote(n' represents the number of subjects with a result at the visit for the particular parameter.); ---------------------------------------------------------------------------------------------- 49 NOTE 49-169: The meaning of an identifier after a quoted string might change in a future SAS release. Inserting white space between a quoted string and the succeeding identifier is recommended. 306 footnote3 %str(Percentages are based on the number of subjects with non-missing data at the time point.); ...
%mend;

Thank you!


Accepted Solutions
Solution
‎02-21-2018 10:37 AM
Regular Contributor
Posts: 165

Re: Quotation marks (in footnote) inside macros disable macros

Posted in reply to DmytroYermak

Hi,

you need to put your text into quotes

%macro test;
footnote1 %nrstr('N = number of subjects in the safety analysis set');
footnote2 %nrstr('n'' represents the number of subjects with a result at the visit for the particular parameter');
footnote3 %nrstr('Percentages are based on the number of subjects with non-missing data at the time point');
%mend;
%test;

Please note that you currently do not need any macro quoting function for displaying the text in the example

 

________________________

- Cheers -

View solution in original post


All Replies
Solution
‎02-21-2018 10:37 AM
Regular Contributor
Posts: 165

Re: Quotation marks (in footnote) inside macros disable macros

Posted in reply to DmytroYermak

Hi,

you need to put your text into quotes

%macro test;
footnote1 %nrstr('N = number of subjects in the safety analysis set');
footnote2 %nrstr('n'' represents the number of subjects with a result at the visit for the particular parameter');
footnote3 %nrstr('Percentages are based on the number of subjects with non-missing data at the time point');
%mend;
%test;

Please note that you currently do not need any macro quoting function for displaying the text in the example

 

________________________

- Cheers -

Regular Contributor
Posts: 214

Re: Quotation marks (in footnote) inside macros disable macros

Thank you!

☑ This topic is solved.

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

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