07-18-2014 03:02 AM
This is my Daily Activity i need to finalize the Macro automation in Base sas.
1. Every day i received txt files (filename ending with yesterdays date - Ex:- xxxxxx_17jun2014.txt)
2 I dont know how many file are client given but file name should be same and yesterdays date and number of the file
( Ex:- xxxxxx_17jun2014_1.txt , xxxxxx_17jun2014_2.txt ...... xxxxxx_17jun2014_n.txt )
3. I need to import all available files at a time run some Analysis.
4. Important thing is "Want to schedule the project and that is running for each and every 10 mints"
A. I dont know when they will upload, My code need to check the files are available.
B. If Files are available and file names matching with yesterdays date then start the process.
C. Once output file is stored into same folder need to stop the activity.
Note:- I already developed the entire code in SAS EG4.0 and Schedule the projects, but now Iam working on SAS9.3.
Thanks in Advance.
07-21-2014 08:56 AM
SAS EG calls the Windows "Scheduled Tasks" (in the control panel) to do it's scheduling.
You can do the same thing manually for SAS 9.3 if that is installed locally. Get your batch process working, encapsulate it in a .bat file, and schedule the .bat file.
If you are using a remote SAS server, there is typically a scheduling tool on the server (in *nix, it's called 'cron').