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

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