BookmarkSubscribeRSS Feed
sas_lak
Quartz | Level 8

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.

3 REPLIES 3
Doc_Duke
Rhodochrosite | Level 12

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

sas_lak
Quartz | Level 8

Thank u all, I got it.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 837 views
  • 3 likes
  • 3 in conversation