Select Page

SAS How to Create Dummy Tables

SAS How to Create Dummy Tables

As a SAS Programmer you will often be required to create Dummy tables or Hard-code a Table. You can easily do it in Base SAS or Proc SQL.

/* Dummy Table Created using SAS Data Step and output Statement */

data set1;
d=5; x=10;
output;
d=9; x=11;
output;
d=13; x=19;
output;
run;

/* Dummy Table Created Using Datalines */

data set2;
infile datalines dlm= ‘ ‘;
input d x;
datalines;
5 10
9 11
13 19
;
run;

/* Dummy Table Created using Cards */

data set3;
infile DATALINES dsd missover;
input d x y;
CARDS;
1, 2, 3
, 3,
, 3
;
run;

About The Author

I like to write. So i write everything. No specific rules but here to enjoy the ride.

Like us or Dislike us. Please Let us know Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Comments