Online File

How to use this page


Rick Aster: Professional SAS Programming Secrets: Contents

Chapter 10
Program 10l
Concatenating and interleaving


*
  Professional SAS Programming Secrets
  Program 10l
  Concatenating and interleaving
*;
options nocenter;
title1 'Starting Data: A';
data work.a;
   retain source 'A';
   do x = 2 to 4;
      do y = 1 to 2;
         output;
         end;
      end;
run;
proc print data=work.a;
run;

title1 'Starting Data: B';
data work.b;
   retain source 'B';
   do x = 1 to 3;
      y = x/10;
      output;
      end;
run;
proc print data=work.b;
run;

title1 'Concatenation';
data work.concatenate;
   set work.a work.b;
run;
proc print data=work.concatenate;
run;

title1 'Interleave';
data work.interleave;
   set work.a work.b;
   by x;
run;
proc print data=work.interleave;
run;

 O /\

Global
Statements

RICK ASTER

SAS

BOOKS

Tech | Dictionary

Download | Rastinate

Rick Aster

Professional SAS Programming Secrets

Contents/Online Files

Corrections