DATA Step, Macro, Functions and more

rsubmit 2 macros

Reply
Contributor
Posts: 23

rsubmit 2 macros

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

Super User
Posts: 19,789

Re: rsubmit 2 macros

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;

Contributor
Posts: 23

Re: rsubmit 2 macros

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,

Super User
Posts: 19,789

Re: rsubmit 2 macros

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?

Contributor
Posts: 23

Re: rsubmit 2 macros

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.

Ask a Question
Discussion stats
  • 4 replies
  • 232 views
  • 0 likes
  • 2 in conversation