DATA Step, Macro, Functions and more

Macro compiled in 9.3 does not work in 9.2, any ideas?

Reply
Contributor
Posts: 20

Macro compiled in 9.3 does not work in 9.2, any ideas?

Hello All,

I compiled sas macros in SAS 9.3. but when I called them in 9.2, it does not work.  however, if i compiled it in 9.2, I did not have any problem using them in 9.3.

It bothers me because I have to run some program in 9.2 and i have to re-compiled the macros.  Does any one know how to fix it?

"You cannot move a stored compiled macro to another operating system or to a different release of SAS."     it is quite true?

Super User
Super User
Posts: 6,500

Re: Macro compiled in 9.3 does not work in 9.2, any ideas?

Why are you using compiled macros instead of just pointing to the source code using the SASAUTOS option?

Contributor
Posts: 20

Re: Macro compiled in 9.3 does not work in 9.2, any ideas?

Why are you using compiled macros instead of just pointing to the source code using the SASAUTOS option?

This is very good questions.  I took these macros from my supervisor, who is familar with compiled macros ( not sasautos).  I need  eveidences to convince him to make a change .  but i am new to macros.     -----how many advantages to use sasautos?  ( point me the links, if you think the questions is too basic. thanks)

Super User
Super User
Posts: 6,500

Re: Macro compiled in 9.3 does not work in 9.2, any ideas?

Look at the paper by Art Carpenter at SUGI 27.

http://www2.sas.com/proceedings/sugi27/p017-27.pdf

Super User
Posts: 9,681

Re: Macro compiled in 9.3 does not work in 9.2, any ideas?

"You cannot move a stored compiled macro to another operating system or to a different release of SAS."

It is true.

You have no choice, must re-compile the macro.

Ksharp

Contributor
Posts: 20

Re: Macro compiled in 9.3 does not work in 9.2, any ideas?

but the macro compiled in 9.2 works in 9.3------I did not re-compile them.

Super User
Posts: 5,257

Re: Macro compiled in 9.3 does not work in 9.2, any ideas?

Things tend to be more often forward compatible, rather than backward....Smiley Wink

Data never sleeps
Super User
Posts: 9,681

Re: Macro compiled in 9.3 does not work in 9.2, any ideas?

I guess you have the same OS under the same TYPE computer .

Ask a Question
Discussion stats
  • 7 replies
  • 283 views
  • 0 likes
  • 4 in conversation