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

we have batch report which run daily at 12:00 ist which need small changes.

 

in the cureent batch report it calculate overall time taken as starting from 12;00 ist from till the end of job completion which include sleep time also .

can you help me how can exclude sleep time calculation so that it should provide extact batch report.

 

i am new to sas enivornment.i m bit worry to do can  anyone help me out.

1 ACCEPTED SOLUTION

Accepted Solutions
rinsabraham
Obsidian | Level 7
I got the solution:
Below is the code:
Proc sql;
Select max(start_time)-max(end_time) from table name where column = sleep time:
Quit;

View solution in original post

4 REPLIES 4
PGStats
Opal | Level 21

Please provide example input data and desired output.

PG
rinsabraham
Obsidian | Level 7
Thanks for reply I got the result.
I try to fetch the data from table and took the difference between two times
rinsabraham
Obsidian | Level 7
I got the solution:
Below is the code:
Proc sql;
Select max(start_time)-max(end_time) from table name where column = sleep time:
Quit;

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to connect to databases in SAS Viya

Need to connect to databases in SAS Viya? SAS’ David Ghan shows you two methods – via SAS/ACCESS LIBNAME and SAS Data Connector SASLIBS – in this video.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1773 views
  • 0 likes
  • 3 in conversation