<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Where Does SAS Enterprise Guide Store the Code for Prompts Created in Prompt Manager? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949701#M45478</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Thank you, it worked! However, I wasn't expecting the XML file to be 20,000 lines of code. I did find the relevant part of the prompt, but I'm not sure if it's okay to modify it for the SAS Viya XML screen.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Nov 2024 12:29:32 GMT</pubDate>
    <dc:creator>SalihKilic</dc:creator>
    <dc:date>2024-11-01T12:29:32Z</dc:date>
    <item>
      <title>Where Does SAS Enterprise Guide Store the Code for Prompts Created in Prompt Manager?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949171#M45445</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello there Community,&lt;/P&gt;&lt;P&gt;I’m trying to understand where &lt;STRONG&gt;SAS Enterprise Guide&lt;/STRONG&gt; stores the underlying code for prompts created through the &lt;STRONG&gt;Prompt Manager&lt;/STRONG&gt;. Specifically, I’d like to know:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG&gt;Is any code generated behind the scenes&lt;/STRONG&gt; for these prompts, and if so, what kind (SAS, XML, etc.)?&lt;/LI&gt;&lt;LI&gt;&lt;STRONG&gt;Where can I find or view this code?&lt;/STRONG&gt; Is it embedded directly in the project file, and is it accessible ?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sasforum.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101827i9738BC0EB530C86C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sasforum.png" alt="sasforum.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I’m asking because I’m working on creating similar functionality in &lt;STRONG&gt;SAS Viya jobs&lt;/STRONG&gt;. I’ve already built an HTML form for user input, but I want to confirm whether the Prompt Manager in Enterprise Guide uses XML to store prompt screen metadata. If so, is it possible to extract that XML and make modifications for use with SAS Viya task prompt forms?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any insights on how SAS Enterprise Guide manages and stores this prompt code would be much appreciated. Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 06:15:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949171#M45445</guid>
      <dc:creator>SalihKilic</dc:creator>
      <dc:date>2024-10-28T06:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Where Does SAS Enterprise Guide Store the Code for Prompts Created in Prompt Manager?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949172#M45446</link>
      <description>&lt;P&gt;An egp file is merely a zip. Rename it and replace .egp with .zip. Code is in there. I have a command-line parser on github that will parse it out.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The data is stored in XML files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Oct 2024 06:37:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949172#M45446</guid>
      <dc:creator>AlanC</dc:creator>
      <dc:date>2024-10-28T06:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Where Does SAS Enterprise Guide Store the Code for Prompts Created in Prompt Manager?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949174#M45447</link>
      <description>&lt;P&gt;Are you aware that EG8.4 also works for Viya?&lt;/P&gt;
&lt;P&gt;There are also migration scripts for EG projects to SAS Studio&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=wf1RL8U75YM" target="_blank"&gt;https://www.youtube.com/watch?v=wf1RL8U75YM&lt;/A&gt;&amp;nbsp;Not sure if the latest version also migrates prompts - but certainly worth a shot before you're rebuilding the flows and prompts manually.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And to answer your question:&lt;/P&gt;
&lt;P&gt;A .egp file is a zip archive. Using a tool like 7-zip you can extract the content to a folder. I've done this below for a super simple EG8.4 project.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Patrick_0-1730098456091.png" style="width: 400px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/101828i57FD9C2590BCB688/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Patrick_0-1730098456091.png" alt="Patrick_0-1730098456091.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In my case the prompt was under project.xml&lt;/P&gt;
&lt;PRE&gt;    &amp;lt;Parameters&amp;gt;
        &amp;lt;ParameterCollection&amp;gt;
            &amp;lt;PWParameter&amp;gt;&amp;amp;lt;PromptGroup obj="p1" version="1.0"&amp;amp;gt;&amp;amp;lt;DefinitionsAndSubgroups&amp;amp;gt;&amp;amp;lt;TextDefinition obj="p2" promptId="PromptDef_1730136796785_502334" name="MyTestPrompt" macroVarOutputLevel="2" minValueCount="0" macroVarListDelimiter="," macroVarListQuote="&amp;amp;amp;quot;"&amp;amp;gt;&amp;amp;lt;Label&amp;amp;gt;&amp;amp;lt;Text obj="p3" xml:lang="en-AU"&amp;amp;gt;Prompt_1&amp;amp;lt;/Text&amp;amp;gt;&amp;amp;lt;/Label&amp;amp;gt;&amp;amp;lt;/TextDefinition&amp;amp;gt;&amp;amp;lt;/DefinitionsAndSubgroups&amp;amp;gt;&amp;amp;lt;/PromptGroup&amp;amp;gt;&amp;lt;/PWParameter&amp;gt;
        &amp;lt;/ParameterCollection&amp;gt;
    &amp;lt;/Parameters&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 28 Oct 2024 06:55:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949174#M45447</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2024-10-28T06:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Where Does SAS Enterprise Guide Store the Code for Prompts Created in Prompt Manager?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949686#M45475</link>
      <description>&lt;P&gt;Thanks for your answer!&lt;/P&gt;&lt;P&gt;I just discovered that when migrating SAS Enterprise Guide projects with prompts, they don’t convert directly and require special attention. Each prompt is transformed into a SAS Studio program step called "Specify Prompt Values," which defines the macro variables. It seems I need to specify values for these macro variables afterward to ensure everything runs correctly in SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;also for your answer to my question&lt;/P&gt;&lt;P&gt;I converted my Enterprise Guide project to a zip file and used the copy files function in the task pane, which worked well. I can view the XML file, which contains about 20,000 lines of code. I found the section where the prompts are located, but I’m unsure if it’s worth modifying this for the SAS Viya job XML screen.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 08:09:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949686#M45475</guid>
      <dc:creator>SalihKilic</dc:creator>
      <dc:date>2024-11-01T08:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Where Does SAS Enterprise Guide Store the Code for Prompts Created in Prompt Manager?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949701#M45478</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank you, it worked! However, I wasn't expecting the XML file to be 20,000 lines of code. I did find the relevant part of the prompt, but I'm not sure if it's okay to modify it for the SAS Viya XML screen.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Nov 2024 12:29:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/Where-Does-SAS-Enterprise-Guide-Store-the-Code-for-Prompts/m-p/949701#M45478</guid>
      <dc:creator>SalihKilic</dc:creator>
      <dc:date>2024-11-01T12:29:32Z</dc:date>
    </item>
  </channel>
</rss>

