BookmarkSubscribeRSS Feed
Balli
Obsidian | Level 7

Hi,

I am trying to write my first SAS Viya job with task prompts. I have added three elements : Combobox, datepicker and a fileselector. I can correctly read the values for combobox and datepicker, however fileselector is somehow not giving me the expected results.

Have pasted below code and Task prompt tabs from my job.

Log:

%put &COMBOREAL.;
ANZ
%put &DATEEXAMPLE;
03Oct2022
%put &FILESELECTOR.;
[object Object]

Code:

%put &COMBOREAL.;
%put &DATEEXAMPLE;
%put &FILESELECTOR.;

Task Prompt:

<?xml version="1.0" encoding="UTF-16"?>
<Task schemaVersion="7.2">
<Registration>
<Name>DS</Name>
<Description>Select the Client file to run default transfers</Description>
<Version>5.2</Version>
</Registration>
<Metadata>
<Options>
<Option inputType="string" name="GroupCombo">Client</Option>
<Option inputType="string" name="LabelCombo">Select the client name:</Option>
<Option inputType="combobox" name="Comboreal" defaultvalue="Latitude" required="true"></Option>

<Option inputType="string" name="Latitude">Latitude</Option>
<Option inputType="string" name="ANZ">ANZ</Option>

<Option name="GROUPDATE" inputType="string">Sale Date</Option>
<Option name="dateEXAMPLE" inputType="datepicker" required="true"
format="monyy7.">Choose a date:</Option>

<Option name="GROUPFile" inputType="string">Select a file :</Option>
<Option name="fileSelector" inputType="sasserverpath"
pathType="file" required="true" > Choose the file to run through the default transfers.</Option>

</Options>

</Metadata>

<UI>
<Group open="true" option="GroupCombo">
<OptionItem option="LabelCombo"/>
<OptionChoice option="Comboreal">
<OptionItem option="Latitude"/>
<OptionItem option="ANZ"/>
</OptionChoice>
</Group>

<Group open="true" option="GROUPDATE">
<OptionItem option="dateEXAMPLE"/>
</Group>

<Group open="true" option="GROUPFile">
<OptionItem option="fileSelector"/>
</Group>
</UI>

</Task>

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 0 replies
  • 429 views
  • 0 likes
  • 1 in conversation