DATA Step, Macro, Functions and more

/* How can i schedule the projects in base SAS 9.3 */

Reply
Contributor
Posts: 46

/* How can i schedule the projects in base SAS 9.3 */

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.

Could you please help me out how to schedule the projects in base sas.

Thanks in Advance.

Trusted Advisor
Posts: 2,113

Re: /* How can i schedule the projects in base SAS 9.3 */

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').

Super Contributor
Posts: 336

Re: /* How can i schedule the projects in base SAS 9.3 */

Hi!

Another option would be the windows task scheduler ..

http://support.sas.com/resources/papers/proceedings11/005-2011.pdf

Contributor
Posts: 46

Re: /* How can i schedule the projects in base SAS 9.3 */

Thank u all, I got it.

Ask a Question
Discussion stats
  • 3 replies
  • 231 views
  • 3 likes
  • 3 in conversation