Chapter Contents |
Previous |
Next |
Using the Output Delivery System in the DATA Step |
ODS features: |
| ||||||||||
Format: | $CNTRY. |
Note: This example uses file names that may not be valid
in all operating environments. To successfully run the example in your operating
environment, you may need to change the file specifications. See Alternative ODS HTML Statements for Running Examples in Different Operating Environments.
Program |
options pagesize=60 linesize=64 nodate pageno=1; |
ods html body='attribs-body.htm' contents='attribs-contents.htm' frame='attribs-frame.htm'; ods printer file='attribs.ps'; |
title 'Leading Grain Producers'; title2 'for 1996'; |
data _null_; length Country $ 3 Type $ 5; input Year country $ type $ Kilotons; if year=1996; format country $cntry.; label type='Grain'; |
file print ods= |
(objectlabel='1996 Grain Production' |
variables=(country type(label='Type of Grain') kilotons(format=comma12.)) ); |
put _ods_; |
datalines; 1995 BRZ Wheat 1516 1995 BRZ Rice 11236 1995 BRZ Corn 36276 ... more lines of data ... 1996 USA Wheat 62099 1996 USA Rice 7771 1996 USA Corn 236064 ; |
ods html close; ods printer close; |
HTML Output |
Frame File Produced by the HTML Destination
Printer Output |
Listing Output |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.