Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help stop batch run on double-click in Windows 1

Status
Not open for further replies.

jonnysnow

Programmer
Apr 10, 2003
36
US
I use SAS (8.0) on several different Windows computers at work. On all except one, the default behavior when a [tt]*.sas[/tt] program file is double-clicked is that SAS opens with the program ready in the Enhanced Editor window. But on one, a double-click starts the program in batch mode. This drives me crazy! How do I reset this???

I'm not sure if this is a SAS question or a Windows question, but I'm sure there's some simple answer somewhere...

Thanks very much!!

 
I think this is more of a windows question. Here is a pdf that SAS gave me a while back when I was automating the runs of certain SAS jobs. It gets you to the right place in Explorer (edit file type) and you should be able to see how one computer is doing it instead of the rest.

 
Perfect! This document helps not only with the double-click problem, but gives a good summary of automating SAS jobs-- which I'll be getting to soon. Thanks!!!
 
When I automated a bunch of my SAS stuff about a year and a half ago it was SLICK.

One batch file with many sas programs in it does most of the work for our plant now.

One small thing that I did that might help you. The .log files (one for each SAS program) will be 'plopped' into the directory where the program is. This is great unless you have a job that runs on a scheduled basis and you want to see why the records did not push from one DB to another last night (fictional example - HA!). So... I started copying the .log files to someplace else on the server and renaming them with a time/date stamp --- no fun to do (I did mine in SQL 2k because it was easier & then I trigger this to run at the end of each sas program by just adding a record to a table when it starts and ends in a tiny DB - job history)...

make sense?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top