Date: Wed, 9 Jun 2004 01:11:07 +0300
Reply-To: susan bander <susab@CNN.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: susan bander <susab@CNN.COM>
Subject: Re: how to display time schedule for a day
Content-Type: text/plain;
here's another sample, something like this but I would like to show the
duration or specific time start or both
ie. if the start time is 08:10 and duration is 10 minutes, show one or both
in this data
sample data
/* Set Graphics Options*/
goptions ftext=zapf targetdevice=jpeg device=win;
/*Create Data Set */
data process;
input Process $18. @20 begin time5. @26 end time6. linetype;
format begin end time5.;
cards;
System Check 08:00 09:00 1
Production Run One 09:30 13:00 1
Virus Scan 11:59 13:30 1
Production Run Two 13:00 16:00 1
Backup 17:00 18:00 1
;
run;
/*Create Annotate Data Set to Draw Lines*/
data anno;
length function color $8;
retain xsys ysys '2' size 10 color 'green';
set process;
line=linetype;
if process="Backup" then color='red';
function='move';x=begin;yc=Process; output;
function='draw'; x=end; yc=process; output;
run;
title "Information Systems Automated Process Schedule";
/* Set Symbols and Axes*/
data _null_;t = '06:00't;put t; t = '23:59't; put t;
run;
symbol1 i=none;
axis1 order=("Backup" "Production Run Two" "Virus Scan" "Production Run One"
"System Check")
label = none;
axis2 order=(21600 to 86340 by 3600) minor=none label=("Scheduled Time");
/*Plot the Timeline*/
proc gplot annotate=anno;
plot process*end/vaxis=axis1 haxis=axis2 ;
format end time3.;
run;quit;