Help using Base SAS procedures

Start macro program from scl

Accepted Solution Solved
Reply
Contributor
Posts: 29
Accepted Solution

Start macro program from scl

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


Accepted Solutions
Solution
‎04-30-2015 10:32 AM
SAS Super FREQ
Posts: 683

Re: Start macro program from scl

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

View solution in original post


All Replies
Super User
Super User
Posts: 7,401

Re: Start macro program from scl

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

SAS Super FREQ
Posts: 683

Re: Start macro program from scl

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

Contributor
Posts: 29

Re: Start macro program from scl

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 ?

Solution
‎04-30-2015 10:32 AM
SAS Super FREQ
Posts: 683

Re: Start macro program from scl

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

Contributor
Posts: 29

Re: Start macro program from scl

God, you're right.

Thanks a lot !

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

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