Date: Wed, 26 Apr 2000 09:59:53 +0200
Reply-To: Jim Groeneveld <J.Groeneveld@ITGROUPS.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: Jim Groeneveld <J.Groeneveld@ITGROUPS.COM>
Subject: Re: Save, Save, Save, Save...
Content-Type: text/plain
Tom,
So I am not the only one who sticks to the old but reliable and very much
appreciated way of working. I use PC-Write (even allowing Windows clipboard
cut and paste! That DOS program is Windows aware!) and LIST and a DOS file
manager additionally, PFM, somewhat similar to Norton commander for DOS. I
never type file names, I point to them in the list using the cursor and run
a batch file from the file manager to start SAS, attached below. All is done
using the keyboard, just a single key to start the editor, LIST or SASBATCH.
No mouse movements, no clicking, no RSI!
SAS runs in the background and I can continue editing other programs or
whatever. No GUI overhead.
@echo off
rem --- SASbatch.bat --- (C) Jim Groeneveld, IKR, 20 August 1997.
echo --- SASbatch.bat --- (C) Jim Groeneveld, IMRO TRAMARKO, 16 March 1999.
echo.
rem starts SAS in batch mode.
if "%1"=="" goto Help
if not exist %1 goto NotExist
rem Switch to the drive the SAS_application is in:
%1\
rem Switch to the directory the SAS_application is in (to make it current):
cd %1\..
echo Starting SAS in batch mode. This window will disappear automatically.
start /m c:\sas\sas -config c:\sas\config.sas -sysin %1 -nosplash %2 %3 %4
%5 %6 %7 %8 %9
goto End
:NotExist
echo File %1 does not exist!
echo.
:Help
echo Syntax from the DOS prompt: %0 {SAS_application_file}
echo ... or drag (in Windows95) the SAS_application_icon to this
echo .BATch_file_icon (or its shortcut on the desktop).
rem Marking and clicking on File in My Computer or Explorer and clicking
Batch Submit
rem subsequently also yields the results in the drive/directory of the
application run.
rem Dragging the icon of the SAS program to (the shortcut of) SAS itself
yields the results
rem on the desktop, often not desired.
pause
rem goto End
:End
Regards - Jim.
--
Y. Groeneveld, MSc IMRO TRAMARKO tel. +31 412 407 070
senior statistician, P.O. Box 1 fax. +31 412 407 080
head IT department 5350 AA BERGHEM IMRO TRAMARKO: a CRO
J.Groeneveld@ITGroups.com the Netherlands in clinical research
My computer allows me to be buggy, imperfect; my wife ......
> -----Original Message-----
> From: Tom Frenkel [SMTP:taf2@IS8.NYU.EDU]
> Sent: Wednesday, April 26, 2000 6:21 AM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Re: Save, Save, Save, Save...
>
> Paula --
>
> Yup. That's one reason why I almost never use interactive SAS ("diaplay
> manager"). Instead I run PC SAS in "batch mode". That is, I work in a
> DOS window (prehistoric I know), editing my SAS program w/ a good text
> editor (KEDIT). When I'm done editing, I go to the DOS prompt and type
> "SAS <program name>". The run creates files with the program name, and
> the suffixes .LOG (for SAS log) and .LST (for output listings if any). I
> use a DOS browser called LIST (also prehistoric) to view the .LOG and .LST
> files. Files are replaced each time, so things are much less likely to
> get messed up.
>
> (I am talking about version 6 of SAS. The new version of SAS, version 8,
> might be friendlier in interactive mode.)
>
> If you don't have a DOS editor or browser, you can do the same thing with
> Windows NOTEPAD. I.e. at DOS prompt type "NOTEPAD" <file name>.
>
> Oh ... for this to work, SAS has to be in your "path". (What you see when
> you type the PATH command at the DOS prompt.) If this is unclear, you can
> hopefully find someone around who can give you a hand with it. Good luck,
>
> --Tom
> Tom Frenkel <taf2@is8.nyu.edu>
> http://pages.nyu.edu/~taf2
>
> > I found SAs to be one of the worst applications in handling saving the
> > .sas files. ...
|