<?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 Passing local formats to SAS/CONNECT subtasks in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955636#M373201</link>
    <description>&lt;P&gt;I'm just starting to work with SAS/CONNECT to parallelize some of our programming tasks.&amp;nbsp; I've work out how to pass a lot of things from the parent session to the subtasks (e.g. work library, macro variables, etc), but I can't find a way to pass locally-defined formats (meaning formats that are defined inside the parent code and are not stored anywhere).&amp;nbsp; Is there a way to do this or am I going to need to create a format library to store these local formats so they can be accessed?&lt;/P&gt;</description>
    <pubDate>Thu, 09 Jan 2025 15:15:10 GMT</pubDate>
    <dc:creator>hartwell</dc:creator>
    <dc:date>2025-01-09T15:15:10Z</dc:date>
    <item>
      <title>Passing local formats to SAS/CONNECT subtasks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955636#M373201</link>
      <description>&lt;P&gt;I'm just starting to work with SAS/CONNECT to parallelize some of our programming tasks.&amp;nbsp; I've work out how to pass a lot of things from the parent session to the subtasks (e.g. work library, macro variables, etc), but I can't find a way to pass locally-defined formats (meaning formats that are defined inside the parent code and are not stored anywhere).&amp;nbsp; Is there a way to do this or am I going to need to create a format library to store these local formats so they can be accessed?&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 15:15:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955636#M373201</guid>
      <dc:creator>hartwell</dc:creator>
      <dc:date>2025-01-09T15:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Passing local formats to SAS/CONNECT subtasks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955639#M373203</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/468664"&gt;@hartwell&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;I'm just starting to work with SAS/CONNECT to parallelize some of our programming tasks.&amp;nbsp; I've work out how to pass a lot of things from the parent session to the subtasks (e.g. work library, macro variables, etc), but I can't find a way to pass locally-defined formats (meaning formats that are defined inside the parent code and are not stored anywhere).&amp;nbsp; Is there a way to do this or am I going to need to create a format library to store these local formats so they can be accessed?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Formats have to be stored somewhere to be of any use.&amp;nbsp; Most likely you are asking how to access formats stored in WORK.FORMATS catalog.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You could probably get it to work by doing two things.&lt;/P&gt;
&lt;P&gt;1) Use the options in the connection syntax to have the WORK library visible in the remote session.&lt;/P&gt;
&lt;P&gt;2) Since that will require that you reference them with a libref other than WORK you will also need to modify the FMTSEARCH option in the remote session so they will be found.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to copy the compiled formats instead of just pointing to them then use PROC UPLOAD with INCAT and OUTCAT options.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc upload incat=work.formats outcat=work.formats ;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2025 15:40:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955639#M373203</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2025-01-09T15:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Passing local formats to SAS/CONNECT subtasks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955641#M373204</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 15:41:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955641#M373204</guid>
      <dc:creator>hartwell</dc:creator>
      <dc:date>2025-01-09T15:41:09Z</dc:date>
    </item>
    <item>
      <title>Re: Passing local formats to SAS/CONNECT subtasks</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955661#M373213</link>
      <description>&lt;P&gt;If you are going to be running a lot of parallel SAS tasks, then it would be useful to create a permanent SAS format library and just define it in each of your SAS sessions:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;libname MyFmt '&amp;lt;Formal library folder&amp;gt;';
proc format library = MyFmt;
&amp;lt;format statements&amp;gt;
run;

options fmtsearch = (MyFmt WORK SASAUTOS);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 09 Jan 2025 19:20:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Passing-local-formats-to-SAS-CONNECT-subtasks/m-p/955661#M373213</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2025-01-09T19:20:22Z</dc:date>
    </item>
  </channel>
</rss>

