Ah, I see, you want to add observations, not just create new variables in an existing data set. There are several ways to do it. One would be to read the "starting" data from an input file and another way would be to have a data step program with multiple output statements.
for example[pre]
data empfile;
length employee $16;
employee='vijay';
age=12;
output;
employee='kumar';
age=14;
output;
employee='nani';
age=15;
output;
employee='stephanie';
age=16;
output;
run;
proc print data=empfile;
title 'empfile';
run;
[/pre]
In the above program, WORK.EMPFILE is the dataset being created. There are 2 variables: EMPLOYEE and AGE. Four observations are being created (4 OUTPUT statements). The program starts with the keyword "DATA" and ends with the keyword "RUN"; The program statements will execute one time, but every OUTPUT statement creates an observation to be written to the output dataset.
Alternately, I could read the data from "inline" data lines, like this:
[pre]
data empfile2;
length employee $16;
infile datalines;
input employee $ age;
return;
datalines;
vijay 12
kumar 14
nani 15
stephanie 16
;
run;
proc print data=empfile2;
title 'From "inline" data';
run;
[/pre]
In this second program, the program statements start with the keyword DATA and end with the keyword RETURN. The data that will become the observations comes after the DATALINES statement. SAS will loop through the DATA step statements one time for every line of data. There's no explicit OUTPUT statement in this program because there is an implied output at the "bottom" of every DATA step program.
If the data lines were stored in a file on disk, c:\temp\mydata.txt, then the above program could be written as:
[pre]
data empfile3;
length employee $16;
infile 'c:\temp\mydata.txt';
input employee $ age;
run;
proc print data=empfile3;
title 'From data on disk';
run;
[/pre]
There are many different forms that the INPUT statement could follow, depending on how the data lines are stored in the disk file. You could even read delimited data, CSV data and/or Excel files or other types of files, with using different options and statements.
The documentation on the subject of creating a SAS dataset by reading data "into" SAS format is quite thorough and contains lots of good examples. You just need to find the example that most closely resembles your data and then read about the statements used in those sample programs.
cynthia