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.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

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
  • 1008 views
  • 0 likes
  • 2 in conversation