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-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 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
  • 1517 views
  • 0 likes
  • 3 in conversation