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>

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 Updates

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
  • 0 replies
  • 579 views
  • 0 likes
  • 1 in conversation