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

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

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.

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
  • 4 replies
  • 883 views
  • 0 likes
  • 4 in conversation