Need a Base SAS program, that can run for 30 minutes to 60 minutes. We need to run the program, as part of Performance Testing , between SAS9.2 and SAS9.4. The program should have FULLSTIMER option.
Your help is greatly appreciated. Thanks.
If you want something to run for a set time, would something like:
%let mins=00:01; data want; start=time(); end=start+"&mins."t; i=0; do while (time() <= end); if i >= 600000 then do; /* Note, adjust this, otherwise you may end up with a lot of records */ curr_time=time(); output; i=0; end; i=i+1; end; run;
Without knowing the hardware sas is running on, it is hardly possible to write a program running for at least 30 minutes.
For IO-testing a tool exists:
Linux: http://support.sas.com/kb/51/660.html
Windows: http://support.sas.com/kb/51/659.html
Skip through the logs of your batch jobs, till you find one that took long enough, add the fullstimer option and run it in both releases.
That takes care of the problem of the system's CPU and I/O cpabilities, which nobody here can replicate. All servers are different.
If you want something to run for a set time, would something like:
%let mins=00:01; data want; start=time(); end=start+"&mins."t; i=0; do while (time() <= end); if i >= 600000 then do; /* Note, adjust this, otherwise you may end up with a lot of records */ curr_time=time(); output; i=0; end; i=i+1; end; run;
I really do appreciate for the time you have spend on my porblem. Thanks for your help.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.