BookmarkSubscribeRSS Feed
djrisks
Barite | Level 11

Hi,

I'm using the SASServerPath to read in a file. By default I would like the value to be blank, or something that I can control. 

 

Currently when I use this: 

 

%let file = ${fileSelector.fullPath};

 

I am getting this value below in the GUI by default. However, I know if someone else uses the task, the value would be different. How can I control it please? I would like to be able to select a SAS dataset, or keep the value blank.

 

C:\Users\kharris\program.sas7bdat

 

This is the code I am using.

 

<Option name="fileSelector" inputType="sasserverpath" defaultFileName="pq1"
pathType="file" defaultExtension="sas7bdat">An example of a SAS Server Path control.
This example allows the user to select a SAS program file.</Option>

 

Many thanks,

 

Kriss Harris

 

1 REPLY 1
BrianGaines
SAS Employee

Hi Kriss,

 

Can you please tell me which version of SAS Studio you are using?

 

Thanks,

 

-Brian

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Update

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