BookmarkSubscribeRSS Feed
msd83
Calcite | Level 5

Hi all,

I have two SAS files each with a macro stored on my local session (client 9.2).

I want to rsubmit the first macro to run a server session (9,4). The macro will run the second macro as part of the programme.

How do I rsubmit the second macro?

Does anyone have any good examples?

Many thanks

4 REPLIES 4
Reeza
Super User

Rsubmit the second macro first as the first is dependent on the second.

(first and second are misnomers)

rsubmit;

%macro one(x);

&x;

%mend;

%macro two();

%one(z);

%mend;

endrsubmit;

msd83
Calcite | Level 5

Thanks Reeza for your advice. I am new to using rsubmit so I was just wondering how does the remote session know what to do with the macros if the files are on the local session or does that not matter,

Reeza
Super User

Think of the remote session as an entirely new computer.

It doesn't know where your computer and files are, you have to tell it.

I don't think I fully understand your problem.

Are the files you're talking about the macro code, are are they files that the macro will reference?

msd83
Calcite | Level 5

Reeza,

Thanks for the reply and I have changed the way I will be running the model so there is no issue now.

Thanks all for your help.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 4 replies
  • 1081 views
  • 0 likes
  • 2 in conversation