Online File

How to use this page


Rick Aster: Professional SAS Programming Shortcuts: Contents

Chapter 13
Program
Writing hierarchical data


proc sort data=tax.fern out=work.ferns;
   by order family genus species;
run;
data _null_;
   set work.ferns;
   by order family genus species;
   file fern;
   if first.order then put @1 'O' @3 order $f24.;
   if first.family then put @1 'F' @3 family $f24.;
   if first.genus then put @1 'G' @3 genus $f24. @28 genusc $f24.;
   put @1 'S' @3 species $f24. @28 speciesc $f24.;
   output;
run;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Shortcuts

Contents/Online Files

Corrections

Catalog Page