[prev in list] [next in list] [prev in thread] [next in thread]
List: sas-l
Subject: Re: Executing external programs in SAS 6.12
From: Paul McDonald <paul_mcdonald () AMERITECH ! NET>
Date: 1999-09-30 14:31:37
[Download RAW message or body]
I'd say you're using the wrong tool. use the windows scheduler to run the
program instead of a sleeping SAS program. Then when the search program
finds the file to kick off the rest of the SAS procedures, have that program
run SAS instead.
Takes up a lot less memory.
Clive Granger wrote in message <7sva5m$5m4$1@newsource.ihug.co.nz>...
>Hi,
>I have created a SAS program that regularly checks a directory for files of
>a pre-specified name, zips them and then emails them to various people.
The
>app runs on my PC, wakes up every 15 minutes, does the check then goes back
>to sleep. Problem is that the PKZIP runs as shell command:
>x PKZIP &password &zippath &filepath;
>This causes the DOS shell window to flash up and interrupt what I am doing.
>
>What I would like to do is:
>options parm="&password &zippath &filepath";
>proc pkzip;
>
>But this fails: PROGRAM NOT FOUND.
>
>Doesn't seem to matter where I put the PKZIP.exe program (tried in D:\SAS;
>D:\SAS\CORE; also in one of the PATH directories).
>
>I looked up "accessing external dlls" in the help but this looked way too
>complicated for what I wanted to do. I have executed programs as procs
>before in an MVS environment and had no real problems, but my PC/SAS
>experience is a bit limited. Can anyone point me in the right direction
>please?
>Thanks,
>Clive Granger (New Zealand... not the Dr. Granger in the States)
>
>
>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic