<?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: How to embed all SAS code into SEG project? in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269806#M18697</link>
    <description>Not sure what you are thinking, Astounding.  %INCLUDE has nothing to do with embedding.  I already use %INCLUDE to assemble individual SAS modules into the final execution sequence.</description>
    <pubDate>Wed, 11 May 2016 17:00:06 GMT</pubDate>
    <dc:creator>Haris</dc:creator>
    <dc:date>2016-05-11T17:00:06Z</dc:date>
    <item>
      <title>How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269796#M18695</link>
      <description>&lt;P&gt;I know how to embed individual SAS code links in SEG. &amp;nbsp;Is there a way to tell SEG to embed all SAS code at once?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Conversely, is there a way to Save As all embeded SAS code into separate SAS code snippets? &amp;nbsp;I know I can save the entire SEG project as one giant SAS code module and I can save each code module as a SAS code. &amp;nbsp;But can I point&amp;nbsp;SEG to a folder (in my case it's Windows) and have it use the existing module names to create separate SAS code files with *.sas extensions?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I am trying to do is to import multiple SAS programs into SEG. &amp;nbsp;These are all parts of the code system used to run annual reports. &amp;nbsp;I need to make changes to those modules, run the new report based on the previous report's code and then save the updated code to a new location preserving the structure of the previous report. &amp;nbsp;I really don't want to merge all those multiple SAS code modules into a single giant SAS code module.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, I thought there was an OPTION for changing&amp;nbsp;what happens when SAS code is opened in SEG. &amp;nbsp;By default, external SAS code is linked. &amp;nbsp;I thought I remembered an option to automatically embed rather than link the code. &amp;nbsp;Can's seem to find that option in SEG 7.11. &amp;nbsp;Am I imagning things?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 17:18:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269796#M18695</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2016-05-11T17:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269802#M18696</link>
      <description>&lt;P&gt;It sounds like the tool you are looking for is %INCLUDE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;options source2;&lt;/P&gt;
&lt;P&gt;%include '\path\to\one\program.sas';&lt;/P&gt;
&lt;P&gt;%include '\path\to\another\program.sas';&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any of the files can be updated, and the same project then would %INCLUDE the updated code.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 16:52:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269802#M18696</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-11T16:52:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269806#M18697</link>
      <description>Not sure what you are thinking, Astounding.  %INCLUDE has nothing to do with embedding.  I already use %INCLUDE to assemble individual SAS modules into the final execution sequence.</description>
      <pubDate>Wed, 11 May 2016 17:00:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269806#M18697</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2016-05-11T17:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269809#M18698</link>
      <description>&lt;P&gt;Sorry, my bad.&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 17:15:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269809#M18698</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-05-11T17:15:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269810#M18699</link>
      <description>No biggie.  Thanks for trying, anyways.</description>
      <pubDate>Wed, 11 May 2016 17:19:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269810#M18699</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2016-05-11T17:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269844#M18704</link>
      <description>&lt;P&gt;Probably through the Automation facilities, but it'll definitely take some effort.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Tom&lt;/P&gt;</description>
      <pubDate>Wed, 11 May 2016 18:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/269844#M18704</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2016-05-11T18:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/532863#M32977</link>
      <description>&lt;P&gt;Dear&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13995"&gt;@Haris&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you finally found a&amp;nbsp;straightforward way to solve this? I was just looking for the same piece of advice...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 08:43:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/532863#M32977</guid>
      <dc:creator>emera86</dc:creator>
      <dc:date>2019-02-05T08:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/532913#M32979</link>
      <description>Regretfully, no. &lt;BR /&gt;</description>
      <pubDate>Tue, 05 Feb 2019 13:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/532913#M32979</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-02-05T13:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533103#M32988</link>
      <description>&lt;P&gt;I'm curious to know why you want to embed a group of SAS programs in a SEG project? Is it to add to an existing project?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If your EG project consists only of manually-developed code then what benefits do you see in doing this?&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 22:45:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533103#M32988</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-05T22:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533105#M32989</link>
      <description>&lt;P&gt;This is for running about 100 SAS programs twice a year with minimal updates/edits to the code.&amp;nbsp; We do archive each code set every report cycle though.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thing is, four somewhat different programs feed from the same stock code and each program makes their own small tweaks.&amp;nbsp; That's why I would like to be able to break the link to all programs at the source so that each programmer would not need to worry about affecting other programs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, our SEG projects are 90% manually developed SAS programs but SEG is so much prettier than Base SAS.&amp;nbsp; Various auto-completion and look-up options make things so much easier to manage.&amp;nbsp; Log summary Explorer makes navigating and exploring the logs much faster.&amp;nbsp; We also store Excel, Word, PowerPoint and PDF documents in the SEG projects making for easy quick navigation and organization of these rather massive projects.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are other benefits but the ones above are the main ones that come to mind.&amp;nbsp; And finally, I have not opened base SAS in about a decade so I don't even know where things are in base SAS any more.&amp;nbsp; In SEG I feel like I am in the 21st century.&amp;nbsp; Bases SAS is 70s &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Feb 2019 22:58:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533105#M32989</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-02-05T22:58:26Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533115#M32990</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13995"&gt;@Haris&lt;/a&gt; - interesting perspective. We too exclusively use EG, but only to manually develop programs that are not embedded. All programs are version-controlled outside of EG in MS Visual Studio with Team Foundation Server. That includes Excel spreadsheets containing reference data. It looks like you are using EG projects in a similar way to our use of a version control tool.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EG is primarily used for development and testing purposes where sometimes EG tasks come in handy. We use the Log Summary explorer too. Job runs are done exclusively in batch mode using SAS Management Console where we use the LSF scheduler. Hence the reason we don't use EG projects as these can't be run outside of EG. We keep all batch logs as an audit trail of what we have done.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Always good to hear about other ways of working with EG. Thanks for that!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Feb 2019 00:54:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533115#M32990</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2019-02-06T00:54:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533316#M32991</link>
      <description>Nice, Kiwi!  Thanks for sharing.&lt;BR /&gt;We don't have any formal version control outside of saving the code and the log corresponding to each run.  Low-tech non-IT solution here.  Log saving is done manually after the execution of every program which is not the most efficient way to handle it.  We do use %INCLUDE extensively to assemble sets of programs into a single Master program and run a single LOG.&lt;BR /&gt;If you know how to program in SAS, SEG tasks seem less efficient based on our experience.  What SEG tasks do you find useful for a proficient SAS programmer?&lt;BR /&gt;One more capability of SEG that we utilize is the AUTOEXEC workflow.  Our programs use macro variables extensively.  Macro variables differentiate among the various programs that we base on the same SAS Code.  Well, those macros, when placed in the AUTOEXEC workflow, become SEG-project-specific.  This enables us to do different things running the same programs.  I don't know if base SAS can do that automatically.&lt;BR /&gt;</description>
      <pubDate>Wed, 06 Feb 2019 16:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533316#M32991</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-02-06T16:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533812#M32992</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13995"&gt;@Haris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;save program as.. allows you to store your code as external .sas files keeping only links to these programs in the EG project. I guess that's actually already something you're doing.&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;You will need to use a path which is accessible for multiple users (either on the server or then on a shared drive everyone maps the same way to their local machine or accesses it via UNC path).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You will need to store the .sas files on the SAS server/in a location accessible by the SAS server.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once you've got the external .sas files you can implement another program in EG which just does %includes to the programs you need to run as a set. You can of course have multiple such programs in EG defining multiple different sets of code to be run.&lt;/P&gt;
&lt;P&gt;The path in the %include statement must be as it looks like from the SAS server side.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Wouldn't that give you the flexibility you're after?&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 03:12:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533812#M32992</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-08T03:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533961#M32994</link>
      <description>&lt;P&gt;I am not sure I follow what you are proposing.&amp;nbsp; I am looking to import about 100 stand-alone SAS programs from a shared network location into an SEG project and embed them all into that project.&amp;nbsp; I want to be able to edit the programs in SEG without changing the originals.&amp;nbsp; I don't think your proposal accomplishes that.&amp;nbsp; Am I missing something.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 15:28:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/533961#M32994</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-02-08T15:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/534202#M33005</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13995"&gt;@Haris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;EM&gt;I am looking to import about 100 stand-alone SAS programs from a shared network location into an SEG project and embed them all into that project.&amp;nbsp; I want to be able to edit the programs in SEG without changing the originals&lt;/EM&gt;."&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Then first create a copy of these 100 programs into another folder on the network and then open the programs from this folder. &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Doing it this way won't actually import the code into EG but create links to the code which you then can use as if the code were directly stored in EG.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now for the versioning of your external code (the .sas programs):&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You could have the code EG links to in a folder called "current" and you then create copies of this code into folders with a date component in the name.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you don't change the names of the .sas files then whatever version of the .sas file is in your current folder is what EG will link to.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.JPG" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/27029i85A5474025BCDAF3/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.JPG" alt="Capture.JPG" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 09 Feb 2019 23:19:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/534202#M33005</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-09T23:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/534325#M33011</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt; , I get the 'copy', 'import' and 'open' parts.&amp;nbsp; That's not a problem.&amp;nbsp; I don't get why you are completely sidestepping the 'embed' part.&amp;nbsp; Are you saying I don't need to do that to accomplish my goal?&amp;nbsp; The key requirement is for four different programs to 'feed' off of the common code making small program-specific adjustments; e.g., 'Age GE 16' for one program and 'Age LE 18' for another, without sending those small changes to the mothership on the network.&amp;nbsp; If I don't embed, I need to make four copies of the source programs every cycle and that is exactly what I am trying to avoid.&amp;nbsp; EMBED does exactly what I need--it breaks the link between the program on the network and stores all changes in SEG project.&amp;nbsp; It's kinda like a coloring book, I want to import the outlines but each user gets to color in their own unique way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For versioning, that's exactly what we do: simply copy all of the code from Fall cycle to Spring cycle to Fall cycle and so on.&amp;nbsp; The small variations between the programs we mostly manage with program-specific macro variables.&amp;nbsp; The ad hoc ones get saved in the logs.&lt;/P&gt;</description>
      <pubDate>Sun, 10 Feb 2019 19:41:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/534325#M33011</guid>
      <dc:creator>Haris</dc:creator>
      <dc:date>2019-02-10T19:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/534332#M33012</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13995"&gt;@Haris&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;O.k. - then I misunderstood part of your requirements. Well, you will have to replicate the code somewhere then whether that's now code embedded in EG or different external .sas files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just as an idea:&lt;/P&gt;
&lt;P&gt;If your actual programs are parameterized then you could set the macro variables outside of the actual program which would allow you to work with a single code version. Just either define prompts in EG or have a first "init" code node where you define and populate the macro vars.&lt;/P&gt;
&lt;P&gt;And just thinking a bit more: If you want to implement your programs with default parameters which get set in case they haven't been defined already upstream then you could use code as below:&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;/* create and populate macro variable if it doesn't exist already */
%macro setMvarDefault(name,value);
  %if not %symexist(&amp;amp;name) %then 
    %do;
      %global &amp;amp;name;
      %let &amp;amp;name=&amp;amp;value;
    %end;
%mend;
%setMvarDefault(test,5);
%put &amp;amp;=test;

/* here the test that macro call won't overwrite pre-defined macro variables */
%let test=10;
%setMvarDefault(test,5);
%put &amp;amp;=test;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 10 Feb 2019 21:00:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/534332#M33012</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2019-02-10T21:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/593590#M34790</link>
      <description>&lt;P&gt;Cool, Thanks &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;! I am inspired and it looks like a good solution to my current situation!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Oct 2019 04:18:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/593590#M34790</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2019-10-03T04:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/617349#M35398</link>
      <description>Hi &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13995"&gt;@Haris&lt;/a&gt;, I totally understand your need and wish we could get there with what we exactly want to achieve. Please do advise if you eventually find the best solution to your question. I am really keen….</description>
      <pubDate>Tue, 14 Jan 2020 23:36:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/617349#M35398</guid>
      <dc:creator>Suzy_Cat</dc:creator>
      <dc:date>2020-01-14T23:36:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to embed all SAS code into SEG project?</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/628726#M35601</link>
      <description>&lt;P&gt;I have the same need and problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There USED to be a way to do in EG 7.11. When you moved (via the right-click menue) sevral non-embeded programs to a different process flow, that would emebed them. However we switched to EG 7.15 and that feature* is nog longer present it seems. A pity for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*I think it was actually a bug. But I miss it now. &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 02 Mar 2020 10:58:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/How-to-embed-all-SAS-code-into-SEG-project/m-p/628726#M35601</guid>
      <dc:creator>Henrik_P</dc:creator>
      <dc:date>2020-03-02T10:58:52Z</dc:date>
    </item>
  </channel>
</rss>

