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

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

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 5665 views
  • 0 likes
  • 2 in conversation