<?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 How to find the format definition in SAS DI? in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444036#M13696</link>
    <description>&lt;P&gt;There are a formats ($va_leadactie_grp., $va_leadactie_subgrp.) &amp;nbsp;as below which has been used in the DI job under user written code transformation and now I want to know how the formats has been defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;va_groep = put(groep,&lt;STRONG&gt;$va_leadactie_grp.&lt;/STRONG&gt;) ; 
va_subgroep = put(subgroep,&lt;STRONG&gt;$va_leadactie_subgrp.&lt;/STRONG&gt;) ; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I see that the following line has also been added. I looked into the library "it_rci_s" and it has multiple datasets but &amp;nbsp;I couldn't see the word "&lt;SPAN&gt;va_leadactie_grp and va_leadactie_subgrp&lt;/SPAN&gt;" any where in the datasets. Appreciate if someone one you guide me to see how the formats has been defined.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options fmtsearch=(it_rci_s);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 09 Mar 2018 09:48:12 GMT</pubDate>
    <dc:creator>Babloo</dc:creator>
    <dc:date>2018-03-09T09:48:12Z</dc:date>
    <item>
      <title>How to find the format definition in SAS DI?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444036#M13696</link>
      <description>&lt;P&gt;There are a formats ($va_leadactie_grp., $va_leadactie_subgrp.) &amp;nbsp;as below which has been used in the DI job under user written code transformation and now I want to know how the formats has been defined.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;va_groep = put(groep,&lt;STRONG&gt;$va_leadactie_grp.&lt;/STRONG&gt;) ; 
va_subgroep = put(subgroep,&lt;STRONG&gt;$va_leadactie_subgrp.&lt;/STRONG&gt;) ; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;I see that the following line has also been added. I looked into the library "it_rci_s" and it has multiple datasets but &amp;nbsp;I couldn't see the word "&lt;SPAN&gt;va_leadactie_grp and va_leadactie_subgrp&lt;/SPAN&gt;" any where in the datasets. Appreciate if someone one you guide me to see how the formats has been defined.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options fmtsearch=(it_rci_s);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 09:48:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444036#M13696</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-09T09:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the format definition in SAS DI?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444039#M13697</link>
      <description>&lt;P&gt;Formats are stored in catalogue entries, not in data sets.&lt;/P&gt;
&lt;P&gt;Even if use of formats is a powerful SAS tool, they don't really match with metadata driven ETL approach, since generation of formats can not be tracked in SAS metadata.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So I tend to use formats only locally in jobs when there can be a substantional benefit compared with other techniques (look-up, join etc). In this manner, it's feasible to find your format definitions.&lt;/P&gt;
&lt;P&gt;But in our current situation, try to find the catalogue that holds your formats, and perform a&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;PROC FORMAT CNTLOUT=work.yourformatdataset...&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;This will output a dataset that holds specifications for all format entries.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 10:14:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444039#M13697</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-03-09T10:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the format definition in SAS DI?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444044#M13698</link>
      <description>&lt;P&gt;Providing the original code which use the user defined formats.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data actieproducten ; 
		set actieproducten ; 
		length GROEP $2. SUBGROEP $4. VA_ACTIEPRODUCT $30. VA_GROEP VA_SUBGROEP $20.; 
		va_actieproduct = put(actieproduct,$va_makprd.) ; 
		va_groep = put(groep,&lt;STRONG&gt;$va_leadactie_grp.&lt;/STRONG&gt;) ; 
		va_subgroep = put(subgroep,&lt;STRONG&gt;$va_leadactie_subgrp.&lt;/STRONG&gt;) ; 
	run ; &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Inorder to find the catalogue which holds my formats, I should execute the code as follows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc format CNTLOUT=work.actieproducten;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 09 Mar 2018 10:40:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444044#M13698</guid>
      <dc:creator>Babloo</dc:creator>
      <dc:date>2018-03-09T10:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the format definition in SAS DI?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444051#M13699</link>
      <description>&lt;P&gt;To be precise, the formats is not defined in that code snippet, they are referred to.&lt;/P&gt;
&lt;P&gt;Well, my code excerpt was just a limited example of the CNTLOUT option.&lt;/P&gt;
&lt;P&gt;You need to supply the catalogue name as well.&lt;/P&gt;
&lt;P&gt;Look up the PROC FORMAT in documentation.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 11:07:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444051#M13699</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2018-03-09T11:07:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to find the format definition in SAS DI?</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444263#M13700</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/8409"&gt;@Babloo&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;Inorder to find the catalogue which holds my formats, I should execute the code as follows?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You likely need to find where all of your formats are located as they could be in any library in your FMTSEARCH library list&lt;/P&gt;
&lt;PRE&gt;proc sql;
   create table myfmts as
   select fmtname,libname, memname
   from dictionary.formats
   where fmtname in ('$VA_MAKPRD' '$VA_LEADACTIE_SUBGRP')
   ;
quit;&lt;/PRE&gt;
&lt;P&gt;Will create a data set with the library and catalog (memname) for the formats. The fmtname is stored in all capital letters and DOES NOT use the period at the end. Place all of your desired to find formats in the search box, or assume that they are all in the same catalog (I wouldn't). Note if the catalog name is other than FORMATS you need to specify the name in the Proc Format code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Strongly suggest saving the cntlout data set to a permanent library that will be maintained.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 20:54:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/How-to-find-the-format-definition-in-SAS-DI/m-p/444263#M13700</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-09T20:54:39Z</dc:date>
    </item>
  </channel>
</rss>

