230k views
5 votes
Which statement is true about using quotation marks in SAS labels?

a) You must use single quotation marks when you want an apostrophe to appear in a label.
b) You must use double quotation marks when you want an apostrophe to appear in a label.
c) Quotation marks should never be used in SAS labels.
d) The use of quotation marks in labels is entirely optional in SAS.

1 Answer

2 votes

Final answer:

In SAS, you must use single quotation marks when you want an apostrophe to appear in a label.

Step-by-step explanation:

In SAS, you must use single quotation marks when you want an apostrophe to appear in a label. This is because double quotation marks are used to enclose the full label, while single quotation marks are used when you want to include an apostrophe within the label.

For example, if you want to create a label that says 'It's a beautiful day', you would need to use single quotation marks like this: label MyVar = 'It''s a beautiful day';

The correct answer to the question is option (a).

User CRISHK Corporation
by
8.1k points