BookmarkSubscribeRSS Feed
JDRII
Obsidian | Level 7
/*----  Run this program first  ----*/

%global PMLRfolder;
/*----  EDIT THE FOLLOWING LINE  ----*/
%let PMLRfolder=S:\workshop;

/*----  Below are some common names for course folders ----*\
%let PMLRfolder=S:\workshop\pmlr51;
%let PMLRfolder=C:\workshop\winsas\pmlr51;
%let PMLRfolder=S:\workshop\winsas\pmlr51;
%let PMLRfolder=C:\workshop;
%let PMLRfolder=S:\workshop;
\*---------------------------------------------------------*/

libname pmlr "%put &PMLRfolder";
4 REPLIES 4
ballardw
Super User
libname pmlr "%put &PMLRfolder";

Is incorrect syntax for a Libname. %put says to write to the log and has no place in a libname statement.

libname pmlr "&PMLRfolder";

May work if the path S:\workshop exists on your system.

JDRII
Obsidian | Level 7
/*----  Run this program first  ----*/

%global PMLRfolder;
/*----  EDIT THE FOLLOWING LINE  ----*/
%let PMLRfolder=/home/u47259455/Data/pmlr00d01.sas;

/*----  Below are some common names for course folders ----*\
%let PMLRfolder=S:\workshop\pmlr51;
%let PMLRfolder=C:\workshop\winsas\pmlr51;
%let PMLRfolder=S:\workshop\winsas\pmlr51;
%let PMLRfolder=C:\workshop;
%let PMLRfolder=S:\workshop;
\*---------------------------------------------------------*/

libname pmlr "&PMLRfolder";

I ran that change and I received these errors Screenshot (19).png

ballardw
Super User

@JDRII wrote:
/*----  Run this program first  ----*/

%global PMLRfolder;
/*----  EDIT THE FOLLOWING LINE  ----*/
%let PMLRfolder=/home/u47259455/Data/pmlr00d01.sas;

/*----  Below are some common names for course folders ----*\
%let PMLRfolder=S:\workshop\pmlr51;
%let PMLRfolder=C:\workshop\winsas\pmlr51;
%let PMLRfolder=S:\workshop\winsas\pmlr51;
%let PMLRfolder=C:\workshop;
%let PMLRfolder=S:\workshop;
\*---------------------------------------------------------*/

libname pmlr "&PMLRfolder";

I ran that change and I received these errors Screenshot (19).png


You changed the definition of the PMLRfolder macro variable to

%let PMLRfolder=/home/u47259455/Data/pmlr00d01.sas;

Libname references a storage area, in this case it should be just a folder. You have assigned it to a text file: pmlroodo1.sas which is a program.

MAYBE, I have no clue where you put the, I believe training materials, you want

%let PMLRfolder=/home/u47259455/Data;

 before executing the libname statement. Maybe.

Reeza
Super User
I posted the solution in your other thread.

sas-innovate-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

Register now

What is ANOVA?

ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 4 replies
  • 1287 views
  • 0 likes
  • 3 in conversation