sas - Running a program in batch mode -
i'm trying open sas in batch mode , i'm confused. i'm able access sas remotely computer school , know how open sas interactively it's slow professor mentioned should use sas in batch mode. based on i've read, opening sas in batch mode opening .sas file code.
i open said file, like: sas filename.sas or sas filename (neither has worked me). keep getting invalid file. saved sas files in documents. i'm working mac computer.
the basic concept of sas batch mode operation in kind of circumstance that, rather having local pc asking things server, run sas on server directly without having send information local pc. may or may not speed things much, @ least won't have bother updating progress.
normal sas operation have file in local sas dm window, push button, sends code server, sends sas engine, compiles , runs it, creates results files, , gives results. batch mode similar, except skip first , last parts; you're in charge of them. start sending code sas engine (possibly including sending server if you're not editing there), , end having results created on server (but if want @ them, need open or download them on own).
sas can run in batch mode invoking command line. simplest version be:
/path-to/sas sasprogram.sas
you can add options, such -log saslog.log
, such redirect log (if don't, log goes same location sas program file same name, .log) or -config sasv9.cfg
use custom config file. if you're running in unix, this page you.
if you're doing in windows, it's different.
c:\path-to\sas.exe -sysin sasprogram.sas
i don't know why sysin necessary in windows , not unix. default thing. this page should start, or can go to sascommunity.org page on subject.
a idea set batch or shell script file custom options you. in windows that's .bat
file, in unix that's .sh
or similar file. way can type sas sasprogram.sas
, run sas program default options way them.
when you're doing this, remember executing on server, , desktop or laptop not involved (except telnet terminal or whatever you're using remote server). cannot see local drives. has sent on server first, either ftp or saving on network storage accessible on server. unless desktop's hard drive mounted on server (unlikely) it's not visible.
Comments
Post a Comment