BookmarkSubscribeRSS Feed
femmeazure
Calcite | Level 5

I don't see Tools or a Command Bar on my Mac OS for SAS.  For example, I get instructions to go to Tools>Preferences etc and there is no Tools at the top.  Or, I am told to run FSLIST in the command bar, but there is no command bar.  How do I get these to show up in my Mac OS version?

5 REPLIES 5
Reeza
Super User
You're looking at instructions not designed for SAS Studio, this has nothing to do with a Mac. Those features are on what's referred to as a version of 'Base SAS' using a typical Windows environment. SAS Studio operates in browser and is fairly different in terms of the interface. The same code will work across both systems though.

Where are these instructions from? Perhaps we can point you to a more appropriate reference.
femmeazure
Calcite | Level 5
These instructions are from my teacher, who claims to know nothing about Macs.

For example, she wants me to use pointers (and then in another step use mixers) to put in raw data. She writes to run FSLIST in the command bar, then open filenamecol.txt, then run COLUMN ON in command bar. Then I can use @ to tell SAS the beginning column of a variable. I am sure there is a way to tell the program to do this without using the tool bar, but I have no instructions as to how to do it.

With respect to creating permanent SAS datasets, this is the log I got when I tried to create one:

1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 LIBNAME MCW623 '/folders/myfolders/hoteltab.txt';
ERROR: Library MCW623 is not in a valid format for access method RANDOM.
ERROR: Error in the LIBNAME statement.
74 DATA MCW623.five;
75 INFILE '/folders/myfolders/hoteltab.txt'
76 DLM = '09'X FIRSTOBS = 2;
77 INPUT room $ size $ bath $ TV $ overlook $ price discount breakfast lunch dinner bar;
78 RUN;

ERROR: Libref MCW623 is not assigned.
NOTE: The SAS System stopped processing this step because of errors.
NOTE: DATA statement used (Total process time):
real time 0.00 seconds
cpu time 0.01 seconds


Reeza
Super User
Your teacher is using SAS Base then which means some of the commands are different from SAS Studio. My guess is your University then offers you a full version of SAS either via a lab or separate download. SAS UE is not appropriate for the class if the instructor has not updated their materials for the new application.

You cannot assign a library to a text file, a library points to a folder usually or an Excel file/Access DB.

Your libname should likely be:

libname mcw623 '/folders/myfolders/';

femmeazure
Calcite | Level 5
Thank you so much for trying to help! I often can't come to school to work on the computers bc I'm an MD and mom to two, so time at school is rare. I will be there later and will have to do this there, but I am sure there must be some way to get around the toolbar with code.

This is what I get w the new lib name:


1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
72
73 LIBNAME MCW623 '/folders/myfolders/';
NOTE: Libref MCW623 was successfully assigned as follows:
Engine: V9
Physical Name: /folders/myfolders
74 DATA MCW623.five;
75 INFILE '/folders/myfolders/'
76 DLM = '09'X FIRSTOBS = 2;
77 INPUT room $ size $ bath $ TV $ overlook $ price discount breakfast lunch dinner bar;
78 RUN;

ERROR: Invalid file, /folders/myfolders.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set MCW623.FIVE may be incomplete. When this step was stopped there were 0 observations and 11 variables.
NOTE: DATA statement used (Total process time):
real time 0.01 seconds
cpu time 0.02 seconds

Reeza
Super User
You don't need to change your INFILE, that SHOULD point to your input text file because you're reading it.

Only change the libname portion.

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 884 views
  • 0 likes
  • 2 in conversation