<?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: download a specific format in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385812#M92337</link>
    <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;As far as I know format catalogs required even conversion&amp;nbsp;between 32 and 64bit Windows.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/44/047.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/44/047.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Format catalogs certainly required conversion between Mainframe z/OS and Windows.&lt;/P&gt;</description>
    <pubDate>Sat, 05 Aug 2017 07:19:33 GMT</pubDate>
    <dc:creator>Patrick</dc:creator>
    <dc:date>2017-08-05T07:19:33Z</dc:date>
    <item>
      <title>download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385724#M92311</link>
      <description>&lt;P&gt;Hello all;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to download a sas format whose name is Pubfmt from mainframe to pc. the catalog name in mainframe is&amp;nbsp;MFlib.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can downloas the whole catalog formats but I don't know how to select the format that I&amp;nbsp;want to download only. please help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;
&lt;PRE&gt;rsubmit;

libname MFlib  "A0001.B00.library" disp=shr;
proc download incat=MFlib.formats  outcat=myPClib.formats
 
;

**select Pubfmt;  /*this not work*/
run;
endrsubmit;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Aug 2017 17:21:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385724#M92311</guid>
      <dc:creator>GeorgeSAS</dc:creator>
      <dc:date>2017-08-04T17:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385731#M92315</link>
      <description>&lt;P&gt;I would probably create a cntlout data set using proc format and Select and then move the data set.&lt;/P&gt;
&lt;PRE&gt;proc format library=work cntlout=work.myformatdata ;
   select formatname;
run;&lt;/PRE&gt;
&lt;P&gt;Move the work.myformatdata set to the target system and then use proc format with the cntlin option to recreate it. That way I always have the data.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The other option is using proc cport to create a transport file and then use proc cport on the other side to read the transport file. A generic example:&lt;/P&gt;
&lt;PRE&gt;libname source 'sas-library';
filename tranfile 'transport-file'      host-option(s)-for-file-characteristics;

proc cport catalog=work.formats file=tranfile;
select formatname;
run;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 04 Aug 2017 17:37:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385731#M92315</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-08-04T17:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385790#M92329</link>
      <description>&lt;P&gt;You can use PROC CATALOG to copy the required format into a temporary catalog then download that:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc catalog cat=mflib.formats;
   copy out=work.formats;
     select pubfmt.format;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 05 Aug 2017 00:24:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385790#M92329</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-05T00:24:17Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385797#M92333</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Just copying catalogs won't work in this case.&lt;/P&gt;
&lt;P&gt;I believe you've missed that this is about moving catalogs from Mainframe to PC.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 02:45:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385797#M92333</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-08-05T02:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385798#M92334</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/10531"&gt;@GeorgeSAS&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Instructions here:&amp;nbsp;&lt;A href="http://support.sas.com/kb/22/193.html" target="_blank"&gt;http://support.sas.com/kb/22/193.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 02:46:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385798#M92334</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-08-05T02:46:31Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385802#M92336</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;- thanks for the feedback. However I use the method I've suggested myself although its from Windows to Windows. PROC CATALOG allows you to select specfic formats, then PROC DOWNLOAD allows you to move that catalog between SAS servers taking care of catalog conversions between operating systems. I'm not able to test this across different OS's myself but I'm keen for the OP to confirm if it does work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also I just found this example that allows you to do the selection&amp;nbsp;with just PROC DOWNLOAD:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/connref/69581/HTML/default/viewer.htm#n026uxwpq5d63rn1268sa8zpnrd3.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/connref/69581/HTML/default/viewer.htm#n026uxwpq5d63rn1268sa8zpnrd3.htm&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 04:08:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385802#M92336</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-05T04:08:44Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385812#M92337</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13976"&gt;@SASKiwi&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;As far as I know format catalogs required even conversion&amp;nbsp;between 32 and 64bit Windows.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/kb/44/047.html&amp;nbsp;" target="_blank"&gt;http://support.sas.com/kb/44/047.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Format catalogs certainly required conversion between Mainframe z/OS and Windows.&lt;/P&gt;</description>
      <pubDate>Sat, 05 Aug 2017 07:19:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385812#M92337</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-08-05T07:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385874#M92358</link>
      <description>PROC DOWNLOAD with SELECT should be sufficient for this operation. &lt;BR /&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/connref/69581/HTML/default/viewer.htm#n1ovuuukyo8jxan0zb6uy89ssybq.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/connref/69581/HTML/default/viewer.htm#n1ovuuukyo8jxan0zb6uy89ssybq.htm&lt;/A&gt;</description>
      <pubDate>Sat, 05 Aug 2017 21:52:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385874#M92358</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2017-08-05T21:52:29Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385885#M92362</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/12447"&gt;@Patrick&lt;/a&gt;&amp;nbsp;- yes, agree&amp;nbsp;catalogs need to be converted, but my suspicion is PROC DOWNLOAD does this on-the-fly during the transfer. PROC DOWNLOAD documentation explicitly states it can be used with FORMAT catalogs so I'm assuming it does the conversion internally.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 06 Aug 2017 03:26:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385885#M92362</guid>
      <dc:creator>SASKiwi</dc:creator>
      <dc:date>2017-08-06T03:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: download a specific format</title>
      <link>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385894#M92367</link>
      <description>&lt;P&gt;You need to have /et= in the SELECT statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format lib=work.formats ;
 value myfmt 1='Made on Local Session';
run;
signon remote=r1 sascmd='!SASCMD' ;
rsubmit r1;
proc format lib=work.formats;
 value myfmt 1='Made on Remote Session';
run;
proc download incat=work.formats outcat=work.formats;
  select myfmt / et=format;
run;
endrsubmit ;
signoff r1;
proc format fmtlib lib=work.formats;
  select myfmt ;
run;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sun, 06 Aug 2017 14:37:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/download-a-specific-format/m-p/385894#M92367</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-08-06T14:37:16Z</dc:date>
    </item>
  </channel>
</rss>

