Hi A Druga,
It depends how you use, how you call the macro. If you just call it from within a data step that will generate the error as you just would generate the statement «1;» which on itself is illegal of course. You should instead code something like: «Existing = %exists(temp1e);»
Regards = Jim.
. . . . . . . . . . . . . . . .
Jim Groeneveld, MSc.
6825 MJ Arnhem
Tel: +31/0 26 376 7365
Fax: +31/0 26 376 7305
My computer has the solutions, I have the problems.
From: A Druga [mailto:antoniamarija@NET.HR]
Sent: Tuesday, November 11, 2003 10:15
Subject: A Macro Problem (ref.: SUGI Paper 100-27)
Hi out there!
I found this little Macro in SUGI Paper 100-27 (Carpenter).
As one can see it is very simple and it's task is easy to understand.
I'm quite new to SAS and now I'm getting following log messages which
I don't know to interpret:
MLOGIC(EXISTS): Beginning execution.
MLOGIC(EXISTS): Parameter DSN has value temp1e
SYMBOLGEN: Macro variable DSN resolves to temp1e
NOTE: Line generated by the macro function "SYSFUNC".
ERROR 180-322: Statement is not valid or it is used out of proper
MLOGIC(EXISTS): Ending execution.
The Dataset exists, the macro resolves to the right value and give the
right output but there is some error which I don't know to eliminate.
Any hints what I'm doing wrong?
Thank You in advance.