BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
MG18
Lapis Lazuli | Level 10

Hi all, I have .csv file with below data :-

 

[sas@apptest Lev1]$ cat test.csv

Filesystem            Size  Used Avail Use% Mounted on

/dev/vda3              30G   11G   18G  37% /

tmpfs                  16G  176K   16G   1% /dev/shm

/dev/vda1             194M   32M  153M  17% /boot

/dev/vda5             9.9G  155M  9.2G   2% /opt

/dev/vda6             9.9G  399M  9.0G   5% /var

/dev/vdl              5.0G  2.1G  2.7G  44% /dbclient

/dev/vdn               30G  1.4G   27G   5% /sasconf

/dev/vdo               99G   12G   83G  13% /saswork

/dev/vdp               50G   11G   37G  23% /sasinst

/dev/vdq               99G   61G   34G  65% /sasdata

/dev/vdr              9.9G  1.7G  7.7G  19% /mysql

/dev/vdm              9.9G  179M  9.2G   2% /users

 

 and i want to create dataset in sas with column name  FILESYSTEMS$ SIZE$ Used$ Avail$ use$ mountedon$ from above .csv file and i have wriiten below code which not creating dataset .

 

data adfbase.cleaned;

infile "/sasconf/sas/Lev1/test.csv" ;

input FILESYSTEMS$ SIZE$ Used$ Avail$ use$ mountedon$;

run;

 

 

proc print  data=cleaned;

run;

 

How can i create same? please let me know .

 

manu thanks in advance .

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

Ok, please mark the question solved.

 

View solution in original post

3 REPLIES 3
Reeza
Super User

What does your log say?

MG18
Lapis Lazuli | Level 10

i got my mistake i was checking work.cleaned and i have inserted records in adfbase.cleaned.

 

mentioned code is working fine.:)

Reeza
Super User

Ok, please mark the question solved.

 

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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