In SAS macro quoting, a percent sign (%) is used inside %str() to escape special characters. The sequence %% escapes the percent sign to yield a literal %, and %' escapes the single quote to yield a literal '. Thus, the resolved value stored in myvar is %'.