Spooky has asked for the wisdom of the Perl Monks concerning the following question:

Spooky here (again), I'm currently running Perl script and need to call a SAS program and pass parameters into the SAS code. What's the best way to do this from Perl? .thanks!

Replies are listed 'Best First'.
Re: Calling SAS from Perl
by almut (Canon) on Mar 18, 2009 at 16:26 UTC
    need to call a SAS program and pass parameters into the SAS code

    If the parameters need to be passed as normal command line arguments, that would simply be something like

    system "your-SAS-program", @parameters;

    (@parameters would contain the individual parameters, of course)

    How would you call the program outside of Perl?  Knowing that would help us to give more specific advice.

Re: Calling SAS from Perl
by MidLifeXis (Monsignor) on Mar 18, 2009 at 17:38 UTC

    Unless tied to the command line, what about SAS Modules?

    Update: Never mind. The linked module is just a parser. It doesn't appear to interact with the back end.

    --MidLifeXis

    The tomes, scrolls etc are dusty because they reside in a dusty old house, not because they're unused. --hangon in this post