LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (July 2010, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 11 Jul 2010 14:54:38 -0400
Reply-To:     Jesper Sahner Pedersen <jespersahner@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Jesper Sahner Pedersen <jespersahner@HOTMAIL.COM>
Subject:      Masking macros in rsubmit-block

Hi,

According to the "SAS/Connect 9.2 Users Guide, p. 126, example 3" a macro definition embedded in a rsubmit-block is remotely submitted and none of the macro statements are interpreted in the client session.

In the code below the client- and server-macro definitions are identical but they are interpreted differently:

%macro test;

%macro client; %let a=%str( ); %put x&a.x; %mend client; %client;

%let server=xx.xx.xx.xx xxxx; signon server user=xxxxxx password='xxxxxxxx'; rsubmit; %macro server; %let a=%str( ); %put x&a.x; %mend server; %server; endrsubmit; signoff;

%mend test;

%test;

- produces the following output: x x xx

- and options=mprint shows the following macro-code in the rsubmit-block: %macro server; %let a= ; %put x&a.x; %mend server; %server;

In other words the %str()-statement is not masked, hence the macros are interpreted differently.

Is this an error, or am I missing something? And if not an error, how can a macro be completely masked?

Regards, Jesper


Back to: Top of message | Previous page | Main SAS-L page