Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

5/23/2021 Program Summary - Program 2. to add two numbers.

sas

Program Summary - Program 2. to add two numbers.sas

Execution Environment

Author: sasdemo
File: /folders/myfolders/Program 2. to add two numbers.sas
SAS Platform: Linux LIN X64 2.6.32-754.6.3.el6.x86_64
SAS Host: LOCALHOST
SAS Version: 9.04.01M6P11072018
SAS Locale: en_US
Submission Time: 5/23/2021, 8:46:50 PM
Browser Host: 10.0.2.2
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like
User Agent:
Gecko) Chrome/90.0.4430.93 Safari/537.36 OPR/76.0.4017.107
Application Server: LOCALHOST.LOCALDOMAIN

Code: Program 2. to add two numbers.sas

data add;
input num1 num2 ;
sum=num1+num2;
datalines;
2 4
;
proc print data = add;
run ;

Log: Program 2. to add two numbers.sas

Notes (4)

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;


72
73 data add;
74 input num1 num2 ;
75 sum=num1+num2;
76 datalines;

NOTE: The data set WORK.ADD has 1 observations and 3 variables.


NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.00 seconds

78 ;

1/2
5/23/2021 Program Summary - Program 2. to add two numbers.sas

79 proc print data = add;


80 run ;

NOTE: There were 1 observations read from the data set WORK.ADD.
NOTE: PROCEDURE PRINT used (Total process time):
real time 0.05 seconds
cpu time 0.06 seconds

81
82
83
84 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
96

Results: Program 2. to add two numbers.sas

Obs num1 num2 sum


1 2 4 6

2/2

You might also like