Previous Page | Next Page

The DOCUMENT Procedure

Example 1: Navigating the File Location and Listing the Entries


Procedure features:

ODS DOCUMENT statement option:

NAME=

DOC statement option:

NAME=

LIST statement options:

entry

LEVELS=

DETAILS

DIR statement option:

path

ODS destinations:

DOCUMENT

LISTING

HTML

Procedure output:

PROC DOCUMENT



Program Description

This example shows you how to do these tasks:


Program

 Note about code
options nodate nonumber;
 Note about code
 data distrdata;
   drop n;
   label Normal_x='Normal Random Variable'
         Exponential_x='Exponential Random Variable';
   do n=1 to 100;
      Normal_x=10*rannor(53124)+50;
      Exponential_x=ranexp(18746363);
      output;
   end;
 run;   
 Note about code
ods document name=univ;
 Note about code
title '100 Obs Sampled from a Normal Distribution';
proc univariate data=distrdata noprint;
  var Normal_x;
 
  histogram Normal_x /normal(noprint) cbarline=grey name='normal';
run;
 Note about code
title '100 Obs Sampled from an Exponential Distribution';
 
proc univariate data=distrdata noprint;
  var Exponential_x;
 
  histogram /exp(fill l=3) cfill=yellow midpoints=.05 to 5.55 by .25
             name='exp';
run;
 Note about code
ods document close;
title;
 Note about code
proc document;
   doc;
   doc name=univ; 
   list/levels=all; 
 Note about code
   dir univariate#2\exponential_x\fitteddistributions\exponential; 
   list;
   list fitquantiles/details;
run;
     
 Note about code
quit;

Output

Current ODS Document in Output

[Current ODS Document in Output]

List of the Entries of the ODS Document WORK.Univ and the Properties of Those Entries

[List of the Entries of the ODS Document WORK.Univ and the Properties of Those Entries]

List of the Entries of the Exponential#1 Entry and the Properties of Those Entries

[List of the Entries of the Exponential#1 Entry and the Properties of Those Entries]

Details of the FitQuantiles#1 Table

[Details of the FitQuantiles#1 Table]

Previous Page | Next Page | Top of Page