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 !

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1619 views
  • 0 likes
  • 3 in conversation