I'm using LaTeX on Windows with MikTeX and I'm seeing some odd behaviour. In the output, some of the spaces are replaced with bracket-like underscores. This is the code:
\documentclass[10pt]{article}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[language=SAS, title=SAS code to format data on government patients]
code code;
code code;
code;
code;
code;
c
identity = "Subject's identity"
variable = "Subject's name in government archive of files";
FORMAT gender genderft.
code
response responseft.;
RUN;
\end{lstlisting}
\end{document}
This generates the following output:

I've replaced all tabs with spaces, copied the code into a plain text editor and retyped all the spaces, and still the problem persists. Even copying the code into the editor from my browser after the question is posted doesn't work. The bracket/underscores are still there.
No other code snippets in my document present this problem, yet they also use identical listings syntax to this example and also use SAS code.
Subject'sthat is the problem, remove that and it goes away. Presumably a bug in the language parser but I suppose you could enable TeX escaping and then hide the apostrophe in a macro – David Carlisle Oct 15 '12 at 15:20