Online File

How to use this page


Rick Aster: Professional SAS Programming Secrets: Contents

Chapter 10
Program 10c
FIRST. and LAST. variables


*
  Professional SAS Programming Secrets
  Program 10c
  FIRST. and LAST. variables
*;
ods html file="first-last.html";

data _null_;
   length color $ 8 first_color last_color 8
       shape $ 8 first_shape last_shape size first_size last_size 8;
   label first_color='FIRST. COLOR' last_color='LAST. COLOR'
       first_shape='FIRST. SHAPE' last_shape='LAST. SHAPE'
       first_size='FIRST. SIZE' last_size='LAST. SIZE';
   set work.design (keep=color shape size);
   by color shape size;
   first_color = first.color;
   last_color = last.color;
   first_shape = first.shape;
   last_shape = last.shape;
   first_size = first.size;
   last_size = last.size;
   file print ods=(variables=(color first_color last_color 
       shape first_shape last_shape size first_size last_size));
   put _ods_;
run;

ods html close;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Secrets

Contents/Online Files

Corrections