Online File

How to use this page


Rick Aster: Professional SAS Programming Shortcuts: Contents

Chapter 46
Program
Transposing with multiple assignment statements


data main.int2 (keep=when dir count);
   set main.int1 (keep=when n n_e n_w s s_e s_w e e_n e_s w w_n w_s);
   length dir $3;
   dir = 'N';
   count = n;
   output;
   dir = 'N-E';
   count = n_e;
   output;
   dir = 'N-W';
   count = n_w;
   output;
   dir = 'S';
   count = s;
   output;
   dir = 'S-E';
   count = s_e;
   output;
   dir = 'S-W';
   count = s_w;
   output;
   dir = 'E';
   count = e;
   output;
   dir = 'E-N';
   count = e_n;
   output;
   dir = 'E-S';
   count = e_s;
   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