BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
West26
Obsidian | Level 7

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.

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

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;

View solution in original post

4 REPLIES 4
andreas_lds
Jade | Level 19

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

 

 

Kurt_Bremser
Super User

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.

RW9
Diamond | Level 26 RW9
Diamond | Level 26

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;
West26
Obsidian | Level 7

I really do appreciate for the time you have spend on my porblem. Thanks for your help.Smiley Very Happy

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

Register Now

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1538 views
  • 0 likes
  • 4 in conversation