It appears that when performing an explicit pass-through with SAS, the text is not delivered to the server in the same manner that it is laid out within the editor or .sas file itself. SAS appears to be delivering the text all on a single line.
This presents a problem when you're passing a query with --comments.
Example:
The following code will be "flattened" within a PROC SQL explicit pass-through:
SELECT * --this is my comment
FROM myTable
WHERE
1 = 1
and the server will receive it like this:
SELECT * --this is my comment FROM myTable WHERE 1 = 1
As you can see, everything after the comment's dashes is....commented.
Is anyone aware of a special option or configuration that can be used with PROC SQL to ensure this doesn't happen? I am aware that with SAS, each of those comments could be converted to:
/*comments like this*/
But for the sake of this question, let's pretend that's not an option and that it is necessary to maintain the --comments in the code.
EDIT: I should note that I am performing this explicit pass-through to an IBM Netezza database.