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

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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