BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
problems99
Calcite | Level 5

Hello,

I would like to start a macro program (MIRbat03_integrated) from scl but that does not work.

    submit continue;

      %include "s:\sf2\mir_francois_test\Prog_SAS\MIRbat03_integrated.sas";      

      %MIRbat03_integrated;    

    endsubmit;  

I used the same code in SAS and that worked. Why in scl that does not work ? Have I forgotten something ?

Thanks and have a nice day.

problems99

1 ACCEPTED SOLUTION

Accepted Solutions
BrunoMueller
SAS Super FREQ

The "test" comand will not executed submit blocks. You must run the SCL entry

View solution in original post

5 REPLIES 5
RW9
Diamond | Level 26 RW9
Diamond | Level 26

I think, and haven't used SCL for donkeys years, you need to assign the macro to a form element.  Have a look at:

SAS(R) Component Language 9.2: Reference

BrunoMueller
SAS Super FREQ

How did you run your SCL program? Using AFA C=lib.catalog.name.scl, or did you use "test"

Check what the SAS Log says

problems99
Calcite | Level 5

I use test.

Log says nothing.

NOTE: Compiling RAPPORTS_GEN.FRAME (PROD.FRAMES.RAPPORTS_GEN.SCL).

NOTE: Code generated for RAPPORTS_GEN.FRAME. Code size=4554.

But if I don't use submit continue and endsubmit, it says me that SAS is not recognized by scl, of course, with a long list of errors. But there are'nt, from an external sas file there is no problem. It's only a problem a adaptability. Maybe is it another way to run a sas macro from scl ?

BrunoMueller
SAS Super FREQ

The "test" comand will not executed submit blocks. You must run the SCL entry

problems99
Calcite | Level 5

God, you're right.

Thanks a lot !

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!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 5 replies
  • 880 views
  • 0 likes
  • 3 in conversation