Hello,
I am not sure if this is possible. I am writing procedures on a project I created in EG and I would like to output the metadata of all the prompts. I would need things like the Prompt name, default value, displayed test, description, etc... I have easily gotten the prompt name and default value by
Is there a similar way to get things like the description, displayed text, prompt type, ect...?
You can obtain at least some of this via EG Automation. See this article about automation in VBScript and PowerShell.
A prompt/param snippet for VBscript:
' discover the parameters Set parmList = prjObject.Parameters Wscript.Echo "Project has " & parmList.Count & " parameters." ' work with the first parameter Set parm = parmList.Item(0) WScript.Echo parm.Name & " parameter has default value of " & parm.DefaultValue
Afaik there is no way to get the metadata, when the egp is loaded.
You could unzip the egp and extract the data from project.xml, there is a tag called <Parameters> containing the complete definition of all prompts.
You can obtain at least some of this via EG Automation. See this article about automation in VBScript and PowerShell.
A prompt/param snippet for VBscript:
' discover the parameters Set parmList = prjObject.Parameters Wscript.Echo "Project has " & parmList.Count & " parameters." ' work with the first parameter Set parm = parmList.Item(0) WScript.Echo parm.Name & " parameter has default value of " & parm.DefaultValue
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.