%let name=opec; filename odsout '.'; /* Imitation of an example from Chris Ricciardi, for International Monetary Fund (IMF) (The data used in this example is just a rough approximation.) */ data data1; format date date9.; format price dollar4.0; input date date9. excess price; datalines; 01jan2000 3.1 25 01feb2000 . 27 01mar2000 . 28 01apr2000 . 24 01may2000 . 28 01jun2000 . 30 01jul2000 . 29 01aug2000 . 30 01sep2000 . 31.5 01oct2000 . 31 01nov2000 . 32 01dec2000 . 28.5 01jan2001 4.1 25 01feb2001 . 27 01mar2001 . 25 01apr2001 . 26 01may2001 . 27 01jun2001 . 26.5 01jul2001 . 24 01aug2001 . 25 01sep2001 . 24.5 01oct2001 . 25.5 01nov2001 . 21 01dec2001 . 19 01jan2002 5.8 19 01feb2002 . 20 01mar2002 . 24 01apr2002 . 26 01may2002 . 26 01jun2002 . 25 01jul2002 . 26 01aug2002 . 27 01sep2002 . 28 01oct2002 . 27.5 01nov2002 . 25 01dec2002 . 27 01jan2003 1.8 30 01feb2003 . 33 01mar2003 . 31 01apr2003 . 26 01may2003 . 27 01jun2003 . 28 01jul2003 . 29 01aug2003 . 29 01sep2003 . 30 01oct2003 . 26 01nov2003 . 29 01dec2003 . 29 01jan2004 0.5 31 01feb2004 . 32 01mar2004 . 34 01apr2004 . 37 01may2004 . 35 01jun2004 . 37 01jul2004 . 39 01aug2004 0.5 43 ; run; data excess_anno; xsys='2'; ysys='2'; hsys='3'; function='label'; style='albany amt'; size=.; position='C'; x='01aug2004'd; y=.5; text=' Excess'; run; data price_anno; xsys='2'; ysys='2'; hsys='3'; function='label'; style='albany amt'; size=.; position='C'; x='01aug2004'd; y=43; text=' Price'; run; /* 2nd chart ... */ data data2; format date date9.; format price dollar4.0; format excess comma6.0; input date date9. excess price lower upper; datalines; 01jan1992 2290 18.0 2180 2300 01feb1992 2270 18.5 2200 2320 01mar1992 2240 18.5 2220 2350 01apr1992 2260 19.0 2225 2360 01may1992 2280 19.5 2230 2370 01jun1992 2300 20.0 2240 2380 01jul1992 2320 20.5 2250 2380 01aug1992 2340 21.0 2250 2370 01sep1992 2330 21.5 2250 2350 01oct1992 2320 21.0 2245 2340 01nov1992 2310 20.5 2210 2350 01dec1992 2300 20.0 2220 2330 01jan1993 2290 20.5 2180 2300 01feb1993 2320 20.0 2200 2320 01mar1993 2240 19.0 2220 2350 01apr1993 2275 19.5 2225 2360 01may1993 2310 19.0 2230 2370 01jun1993 2340 18.5 2240 2380 01jul1993 2375 18.0 2250 2380 01aug1993 2365 18.5 2250 2370 01sep1993 2375 18.0 2250 2350 01oct1993 2320 18.0 2245 2340 01nov1993 2300 18.5 2210 2350 01dec1993 2290 18.0 2220 2330 01jan1994 2280 17.5 2180 2300 01feb1994 2210 16.0 2200 2320 01mar1994 2230 15.0 2220 2350 01apr1994 2260 15.5 2225 2360 01may1994 2300 15.0 2230 2370 01jun1994 2360 16.0 2240 2380 01jul1994 2410 17.0 2250 2380 01aug1994 2390 18.0 2250 2370 01sep1994 2375 17.5 2250 2350 01oct1994 2370 17.0 2245 2340 01nov1994 2350 17.5 2210 2350 01dec1994 2330 18.0 2220 2330 01jan1995 2310 18.5 2180 2300 01feb1995 2290 18.0 2200 2320 01mar1995 2280 19.0 2220 2350 01apr1995 2250 19.5 2225 2360 01may1995 2280 19.0 2230 2370 01jun1995 2290 18.5 2240 2380 01jul1995 2320 17.5 2250 2380 01aug1995 2360 17.0 2250 2370 01sep1995 2320 17.0 2250 2350 01oct1995 2330 17.5 2245 2340 01nov1995 2310 18.0 2210 2350 01dec1995 2200 18.5 2220 2330 01jan1996 2150 18.0 2180 2300 01feb1996 2100 18.0 2200 2320 01mar1996 2130 19.0 2220 2350 01apr1996 2170 21.0 2225 2360 01may1996 2190 20.5 2230 2370 01jun1996 2200 21.0 2240 2380 01jul1996 2210 20.5 2250 2380 01aug1996 2220 21.0 2250 2370 01sep1996 2200 21.5 2250 2350 01oct1996 2200 22.5 2245 2340 01nov1996 2220 23.0 2210 2350 01dec1996 2200 22.0 2220 2330 01jan1997 2220 23.0 2180 2300 01feb1997 2180 22.0 2200 2320 01mar1997 2240 21.0 2220 2350 01apr1997 2230 20.0 2225 2360 01may1997 2270 19.0 2230 2370 01jun1997 2250 20.0 2240 2380 01jul1997 2275 19.0 2250 2380 01aug1997 2325 20.0 2250 2370 01sep1997 2375 19.0 2250 2350 01oct1997 2340 18.0 2245 2340 01nov1997 2325 17.0 2210 2350 01dec1997 2325 16.0 2220 2330 01jan1998 2310 15.0 2180 2300 01feb1998 2290 14.0 2200 2320 01mar1998 2360 13.5 2220 2350 01apr1998 2470 13.0 2225 2360 01may1998 2400 12.0 2230 2370 01jun1998 2470 12.0 2240 2380 01jul1998 2410 13.0 2250 2380 01aug1998 2430 12.0 2250 2370 01sep1998 2425 12.5 2250 2350 01oct1998 2420 13.0 2245 2340 01nov1998 2440 11.5 2210 2350 01dec1998 2410 10.5 2220 2330 01jan1999 2390 10.0 2180 2300 01feb1999 2400 11.0 2200 2320 01mar1999 2460 13.0 2220 2350 01apr1999 2410 14.0 2225 2360 01may1999 2350 15.0 2230 2370 01jun1999 2400 17.0 2240 2380 01jul1999 2370 18.0 2250 2380 01aug1999 2350 19.0 2250 2370 01sep1999 2300 20.0 2250 2350 01oct1999 2240 21.0 2245 2340 01nov1999 2175 23.0 2210 2350 01dec1999 2180 24.0 2220 2330 01jan2000 2160 25.0 2180 2300 01feb2000 2180 27.0 2200 2320 01mar2000 2200 28.0 2220 2350 01apr2000 2280 24.0 2225 2360 01may2000 2250 28.0 2230 2370 01jun2000 2230 30.0 2240 2380 01jul2000 2300 29.0 2250 2380 01aug2000 2270 30.0 2250 2370 01sep2000 2269 31.5 2250 2350 01oct2000 2300 31.0 2245 2340 01nov2000 2280 32.0 2210 2350 01dec2000 2240 28.5 2220 2330 01jan2001 2230 25.0 2180 2300 01feb2001 2233 27.0 2200 2320 01mar2001 2254 25.0 2220 2350 01apr2001 2277 26.0 2225 2360 01may2001 2300 27.0 2230 2370 01jun2001 2340 26.5 2240 2380 01jul2001 2342 24.0 2250 2380 01aug2001 2345 25.0 2250 2370 01sep2001 2350 24.5 2250 2350 01oct2001 2335 25.5 2245 2340 01nov2001 2330 21.0 2210 2350 01dec2001 2330 19.0 2220 2330 01jan2002 2330 19.0 2180 2300 01feb2002 2320 20.0 2200 2320 01mar2002 2340 24.0 2220 2350 01apr2002 2320 26.0 2225 2360 01may2002 2300 26.0 2230 2370 01jun2002 2285 25.0 2240 2380 01jul2002 2250 26.0 2250 2380 01aug2002 2225 27.0 2250 2370 01sep2002 2200 28.0 2250 2350 01oct2002 2175 27.5 2245 2340 01nov2002 2150 25.0 2210 2350 01dec2002 2125 27.0 2220 2330 01jan2003 2100 30.0 2180 2300 01feb2003 2125 33.0 2200 2320 01mar2003 2150 31.0 2220 2350 01apr2003 2175 26.0 2225 2360 01may2003 2200 27.0 2230 2370 01jun2003 2230 28.0 2240 2380 01jul2003 2260 29.0 2250 2380 01aug2003 2250 29.0 2250 2370 01sep2003 2260 30.0 2250 2350 01oct2003 2230 26.0 2245 2340 01nov2003 2220 29.0 2210 2350 01dec2003 2210 29.0 2200 2330 01jan2004 2200 31.0 2180 2300 01feb2004 2220 32.0 2200 2320 01mar2004 2240 34.0 2220 2350 01apr2004 2260 37.0 2225 2360 01may2004 2270 35.0 2230 2370 01jun2004 2280 37.0 2240 2380 01jul2004 2290 39.0 2250 2380 01aug2004 2300 43.0 2250 2370 ; run; data excess2_anno; xsys='2'; ysys='2'; hsys='3'; function='label'; style='albany amt'; size=.; position='C'; x='01aug2004'd; y=2300; text=' Barrels'; run; data price2_anno; xsys='2'; ysys='2'; hsys='3'; function='label'; style='albany amt'; size=.; position='C'; x='01aug2004'd; y=43; text=' Price'; run; goptions device=png; goptions noborder; ODS LISTING CLOSE; ODS HTML path=odsout body="&name..htm" (title="Oil Spare Capacity & Price") style=htmlblue options(pagebreak='no'); goptions gunit=pct htitle=5 htext=3.75 ftitle="albany amt/bold" ftext="albany amt/bold"; goptions ctext=gray33; title1 j=l color=cx1E90FF height=16pt link="opec_info.htm" "Figure 1.21. OPEC Spare Capacity, Commercial Oil"; title2 j=l color=cx1E90FF height=16pt link="opec_info.htm" "Inventories, and Speculative Activity"; goptions xpixels=700 ypixels=70; proc gslide des='' name="&name"; run; axis1 color=black order=('01jan2000'd to '01jan2005'd by year) label=none major=(height=-.9) offset=(1,5); axis2 style=0 order=(0 to 7 by 1) label=(angle=90 color=cx5CACEE j=c 'Global Excess Capacity' j=c 'millions of barrels/day') value=(color=black) major=(color=black height=.7) minor=(color=black number=1 height=.4) offset=(0,0); axis3 style=0 order=(10 to 50 by 10) label=(angle=90 color=cxE32636 j=c 'Avg Petroleum Spot Price' j=c 'U.S. dollars per barrel') value=(color=black) major=(color=black height=.7) minor=(color=black number=1 height=.4) offset=(0,0); symbol1 value=none color=cx5CACEE interpol=steplj; symbol2 value=none color=cxE32636 interpol=join; title1 j=l "Global Spare Oil Production Capacity and Average Petroleum Spot Price"; title2 h=5 " "; footnote1 h=7 " "; goptions xpixels=700 ypixels=325; proc gplot data=data1; format date year4.; plot excess*date=1 / vaxis=axis2 haxis=axis1 href='01aug2004'd lhref=2 chref=graydd anno=excess_anno des='' name="&name"; plot2 price*date=2 / vaxis=axis3 anno=price_anno; run; axis1 color=black order=('01jan1992'd to '01jan2005'd by year) label=none major=(height=.9) offset=(1,5) value=(angle=90); axis2 style=0 order=(2000 to 2600 by 100) label=(angle=90 color=orange 'Millions of barrels') value=(color=black) major=(color=black height=.7) minor=(color=black number=1 height=.4) offset=(.3,0); axis3 style=0 order=(50 to 0 by -10) label=(angle=90 color=cxE32636 'U.S. dollars a barrel') value=(color=black) major=(color=black height=.7) minor=(color=black number=1 height=.4) offset=(.3,0); symbol1 value=none interpol=join color=orange; symbol2 value=none interpol=join color=cxE32636; symbol3 value=none interpol=join color=pink; symbol4 value=none interpol=join color=pink; pattern1 v=solid c=white; pattern2 v=solid c=cxB0E2FF; title1 j=l "Crude Oil Inventories - OECD"; title2 h=5 " "; footnote; proc gplot data=data2; format date year4.; plot lower*date=3 upper*date=4 excess*date=1 / overlay areas=2 vaxis=axis2 haxis=axis1 href='01aug2004'd lhref=2 chref=graydd anno=excess2_anno des='' name="&name"; plot2 price*date=2 / vaxis=axis3 anno=price2_anno; run; quit; ODS HTML CLOSE; ODS LISTING;