BookmarkSubscribeRSS Feed
dan007004
Fluorite | Level 6

Heya,

 

Learning how to load some files into SAS. I have setup the virtual box using the below address. Unfortunately the top row will display however is not displaying any of the rows below, I'm also seeing an error that advises that I have a lockdown state?

 

I have setup virtual box and it's running Ok.

 

data sasdata.text15;
infile "/Users/NAME/Documents/SASUniversityEdition/myfolders/testfile.rtf"
LRECL=100 DLM="" firstobs=2;
input
T L M ;

run;

 

Is this because of running this on a mac and it won't locate the file? Any ideas?

 

Really appreciate the help,

 

Thanks,

 

1 REPLY 1
ballardw
Super User

1) RTF is seldom going to work for data interchange

2) the variables you show are all expected to be numeric, I would suspect that most of the data is character

3) Show log of code with errors. Copy from the log and paste into a code box opened using the forum's {I} icon.

The code box will maintain appearance of the code and error messages that might get reformatted by the main message windows on this forum.

 

4) show some example data. Open the RTF file in a plain text editor (NOTEPAD or even the SAS program editor) copy the first 5 or 6 lines and paste into a code box as described above.

 

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
  • 1 reply
  • 247 views
  • 0 likes
  • 2 in conversation