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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 1128 views
  • 0 likes
  • 3 in conversation