From: allen scully on
I'm trying to get some PL/SQL code to run in PROC DBLOAD - however the
code has the syntax 'exit when tr_pk%NOTFOUND'.
The presence of the % sign seems to cause some issues, as SAS is
reading it as some kind of Macro language. Wondering if there is
anything that can be invoked to have SAS ignore the % sign as any kind
of macro?
From: Tom Abernathy on
On Mar 19, 4:21 pm, allen scully <allen.scull...(a)gmail.com> wrote:
> I'm trying to get some PL/SQL code to run in PROC DBLOAD - however the
> code has the syntax 'exit when tr_pk%NOTFOUND'.
> The presence of the % sign seems to cause some issues, as SAS is
> reading it as some kind of Macro language.  Wondering if there is
> anything that can be invoked to have SAS ignore the % sign as any kind
> of macro?

Depends on how you are passing the code.
If it is as a quoted string then use single quote characters instead
of double quote characters.
If not then macro quoting such as %str(%%) to protect the percent
characters.