BookmarkSubscribeRSS Feed
britney09
Calcite | Level 5

the variable names in order are id , hc, leng, bwt, gage 

2 REPLIES 2
novinosrin
Tourmaline | Level 20
data read;
infile 'C:\Users\nsriniv2\Downloads\baby_f2018.txt';
input  id  hc leng bwt gage;
run;

 

Specify the location where you stored your .txt in place properly

infile 'C:\Users\nsriniv2\Downloads\baby_f2018.txt'; 

ballardw
Super User

No need for attachments, post in a code (or text box) opened with the {I} forum icon:

4 13 20 7.3 37
5 13 21 8 41
6 13 21 7.5 39
7 13 20 7 39
8 13 19 5.3 37
13 14 20 8.6 43
14 15 22 9.1 40
16 13 19 6.5 37
17 12 20 3.3 29
21 13 21 8.1 41
22 14 21 7.8 40
23 14 21 8 39
27 14 20 7.8 41
29 15 20 8.7 41
30 13 21 8.5 42
31 12 20 8.1 42
32 14 19 7.7 40
34 13 21 7.6 41
36 13 20 7.6 39
38 13 19 7.9 42
40 13 20 7.9 39
42 13 20 7 40
44 14 20 9 43

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 552 views
  • 0 likes
  • 3 in conversation