SAS® on the Unix  

To simulate SAS Display Manager, it is useful to open three terminal windows to view these files: SAS program, log and list.  

UltraEdit     Vi Editor     Vi Tutorials    

Basic Unix Commands     Unix Manuals   Unix Tutorials

SAS Companion for Unix Syntax    Append Diff Files

 ______________________________________________

1. UNIX® Users - See Output of a PROC CONTENTS or PROC PRINT With a Single Command!, Tina Bykofsky

2. SAS Procedures as UNIX Commands, Sriharsha Rachabattula

3. Some Tricks to Get the Best Out of SAS® and UNIX, Chienchung Chen

4. Wonderful Unix SAS Scripts: SAS Quickies for Dummies, Raoul Bernal [Batch files]

5. Unix and SAS: Getting Started, Sara Hickson

6. UltraEdit: Thumbs-Up Code Editor for SAS® Programming On PC and UNIX Servers, Eugene Tsykalov

7. Smokin With UNIX® Pipes, Kimberly LeBouton, Thomas Rice

8. Unix to RTF Macro, Producing RTF Reports on the Unix Platform, Jim Snider

9. SAS® UNIX-Space Analyzer – A Handy Tool for UNIX SAS Administrators, Airaha Chelvakkanthan Manickam

10. Locally Visible, Remote Data and Format, Hsiwei Yu, Brian Deitch, Kamau Njuguna [LIBNAME]

11. How to Access PC File Data Objects Directly from UNIX, Howard Plemmons

12. The SAS Terminator: An Ultimate Killer of UNIX Processes, Houliang Li

13. UNIX Comes to the Rescue: A Comparison between UNIX SAS® and PC SAS, Chii-Dean Lin, Ming Ji

14. Let SAS® Do Your DIRty Work Richann Watson

15. I’ve Got to Hand It to You; Portable Programming Techniques, Art Carpenter, Mary Rosenbloom

16. Good Programming Practice when Working Across PC SAS and UNIX SAS James Zhao

17. Quick Windows Batches to Control SAS Programs Running Under, Windows and UNIX, Stanislaw Furdal

18. Unix: passing parameter to a SAS program in command line [SAS Support]

19. A Sysparm Companion, Passing Values to a Program from the Command Line, Ronald Fehd

20. No Program Is An Island: Passing Parameters to Tasks Launched by Servers and Schedulers, Michael Davis, Gregory Nelson

21. A Macro to Create a Batch Submit SAS Program, Helen Sun, Cindy Wong

22. Creating a Batch Command File for Executing SAS with Dynamic and Custom System Options, Gary Moore

23. Passing parameter to a SAS program in command line [SAS Blog]

The -sysparm in you question should work,  you can pass multiple parameters in -sysparm option and parse it using scan function in sas file. To redirect your log and lst result to particular file you can use -log and -print options.

Modifying your code as below:

sas /<path>/<program>.sas -sysparm "value1,value2" -log anypath/anyname.log -print anypath/anyname.lst 

in your code you can parse -sysparm using scan function.

data _null;

_value1=scan(sysparm(),1,', ');
_value2=scan(sysparm(),2,',');
 call symput("value1", "_value1");

 call symput("value2", "_value2");

run;

Powered by Wild Apricot Membership Software