{
  "name": "SAS comment forms compared by documented rules",
  "description": "Compares the three SAS comment forms (comment statement, block comment, macro comment) on the rules the SAS Language Dictionary and SAS Macro Language Reference state: how each ends, whether it may contain semicolons or unmatched quotation marks, whether it can nest, whether it can sit inside a statement and whether it hides text from the macro facility. Compiled by reading both reference pages.",
  "page": "https://casrai.org/guides/comment-in-sas",
  "publisher": "CASRAI",
  "license": "https://creativecommons.org/licenses/by/4.0/",
  "dateModified": "2026-11-24T09:35:00Z",
  "temporalCoverage": null,
  "spatialCoverage": null,
  "columns": [
    {
      "name": "Comment form",
      "unit": "",
      "description": ""
    },
    {
      "name": "Ends with",
      "unit": "",
      "description": ""
    },
    {
      "name": "May contain semicolons",
      "unit": "",
      "description": ""
    },
    {
      "name": "May contain unmatched quotation marks",
      "unit": "",
      "description": ""
    },
    {
      "name": "Can be nested",
      "unit": "",
      "description": ""
    },
    {
      "name": "Hides macro text from the macro facility",
      "unit": "",
      "description": ""
    },
    {
      "name": "Appears in generated code (VERDATA example)",
      "unit": "",
      "description": ""
    }
  ],
  "rows": [
    {
      "Comment form": "* message ;",
      "Ends with": "Semicolon",
      "May contain semicolons": "No",
      "May contain unmatched quotation marks": "No",
      "Can be nested": "Not stated",
      "Hides macro text from the macro facility": "No",
      "Appears in generated code (VERDATA example)": "Yes"
    },
    {
      "Comment form": "/* message */",
      "Ends with": "*/",
      "May contain semicolons": "Yes",
      "May contain unmatched quotation marks": "Yes",
      "Can be nested": "No",
      "Hides macro text from the macro facility": "Yes",
      "Appears in generated code (VERDATA example)": "Yes"
    },
    {
      "Comment form": "%* message ;",
      "Ends with": "Semicolon",
      "May contain semicolons": "No, unless quoted",
      "May contain unmatched quotation marks": "No, quotes must match",
      "Can be nested": "Not stated",
      "Hides macro text from the macro facility": "Yes",
      "Appears in generated code (VERDATA example)": "No"
    }
  ],
  "sources": [
    {
      "title": "SAS Language Dictionary: Comment Statement (SAS 9.2)",
      "url": "http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/a000289375.htm",
      "accessed": "2026-11-17"
    },
    {
      "title": "SAS Macro Language Reference: %* comment",
      "url": "http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a000543665.htm",
      "accessed": "2026-11-17"
    }
  ]
}