home *** CD-ROM | disk | FTP | other *** search
- Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
- Path: sparky!uunet!paladin.american.edu!auvm!COMPUSERVE.COM!71020.1025
- Message-ID: <920731035721_71020.1025_EHC55-1@CompuServe.COM>
- Newsgroups: bit.listserv.sas-l
- Date: Thu, 30 Jul 1992 23:57:21 EDT
- Reply-To: William Kahn <71020.1025@COMPUSERVE.COM>
- Sender: "SAS(r) Discussion" <SAS-L@UGA.BITNET>
- From: William Kahn <71020.1025@COMPUSERVE.COM>
- Subject: 6.04 command line invoke
- Lines: 25
-
- In SAS 6.04, how can I pass parameters to the SAS program being executed in
- batch mode? i.e. I want to invoke SAS with a command like
-
- SAS digestit.sas -raw.asc
-
- and have the sas program DIGESTIT.SAS run on the input file RAW.ASC.
- DIGESTIT.SAS may look like: (neither infile is correct, just example idea).
-
- data temp;
- infile %1; *I'm using DOS batch type syntax here. %1 expands to RAW.ASC;
- infile &mvar; *Using SAS macro type syntax here. &mvar expands to RAW.ASC;
- input x y z;
- proc means; run;
-
- How do you get a command line parameter into a macro variable?
-
- I can query the user with a windows statement for the data file name after
- s/he invokes digestit.sas. I would prefer to have it all work off the
- command line.
-
- Thanks.
-
- Bill Kahn
- W. L. Gore and Associates
- 71020.1025@compuserve.com
-