<?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: apply user defined format UDF in SAS Viya</title>
    <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625362#M543</link>
    <description>&lt;P&gt;And when I open VA this error prompt appears:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;com.sas.cas.CASException: The user-defined programming statements could not be parsed. (severity=2 reason=6 statusCode=2710055)&lt;BR /&gt;5 ERROR: The user-defined programming statements could not be parsed.&lt;BR /&gt;5 ERROR: Invalid FORMAT 'ENGINESIZE.' found.&lt;BR /&gt;5 ERROR: Failure opening table 'CARS'&lt;BR /&gt;5 ERROR: The action stopped due to errors.&lt;BR /&gt;debug=0x887ff837:TKCASTAB_PARSE_ERROR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Studio the format was applied correctly when I wrote the table to a caslib.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 17 Feb 2020 17:25:15 GMT</pubDate>
    <dc:creator>acordes</dc:creator>
    <dc:date>2020-02-17T17:25:15Z</dc:date>
    <item>
      <title>apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/623878#M535</link>
      <description>&lt;P&gt;I have followed the steps to cretae a global scope user-defined-format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In "Management environment" it shows up correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But now I do not have any clue about applying it correctly.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want assign the mpgrating format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;79    cas mysession listformats scope=global members;
NOTE: Fmtlib = MYFMTLIB          
         Scope = Global
         Fmtsearch = NA
         Format = mpgrating  
NOTE: Fmtlib = SASSUPPLIEDFORMATS
         Scope = Global
         Fmtsearch = NA
         Format = $obfsusr   
         Format = $shift2txt 
         Format = $shiftxt2id
         Format = shift      
         Format = shifttxt &lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;this doesn't work as I expected because it's not cas but data step.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data public.class ;
format age mpgrating. ;
set sashelp.class;
age=age*3 + rand("normal",5,13);
run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Should I do it with proc casutil? How?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My ultimative goal is to use this UDF in Visual Analytics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Feb 2020 15:19:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/623878#M535</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-02-11T15:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/624099#M536</link>
      <description>&lt;P&gt;Your program will work, just a few things to note:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;numeric variables with a user defined format will be treated as category&lt;/LI&gt;
&lt;LI&gt;you have to promote the table so it has a global scope and can be seen in Visual Analytics&lt;/LI&gt;
&lt;LI&gt;a global scoped table (promoted) needs to be deleted first so that it can be written again&lt;/LI&gt;
&lt;LI&gt;when running the DATA Step the format has to be available to SAS, or use the NOFMTERR system option&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This code sample works for me:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas sugus sessopts=(caslib="casuser");
cas sugus listformats scope=global members;

libname public cas caslib="public";

options nofmterr;

proc delete data=public.class_format_test;
run;

data public.class_format_test(promote=yes);
  set sashelp.class;
  ageGroup = age;
  format ageGroup class_age_group.;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Feb 2020 08:06:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/624099#M536</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-02-12T08:06:19Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/624431#M537</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But it doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here comes the log.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;1     OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;

NOTE: The CAS statement request to update one or more session options for session SUGUS completed.
77    cas sugus listformats scope=global members;
NOTE: Fmtlib = MYFMTLIB          
         Scope = Global
         Fmtsearch = NA
         Format = mpgrating  
NOTE: Fmtlib = SASSUPPLIEDFORMATS
         Scope = Global
         Fmtsearch = NA
         Format = $obfsusr   
         Format = $shift2txt 
         Format = $shiftxt2id
         Format = shift      
         Format = shifttxt   
NOTE: Request to LISTFORMAT completed for session SUGUS.
78    
79    libname public cas caslib="public";
NOTE: Libref PUBLIC was successfully assigned as follows: 
      Engine:        CAS 

81    options nofmterr;
82    
83    /* proc delete data=public.class_format_test; */
84    /* run; */
85    
86    data public.class_format_test;
87      set sashelp.class;
88      ageGroup = age;
89      format ageGroup mpgrating.;
                        ----------
                        484
NOTE 484-185: Format MPGRATING was not found or could not be loaded.
90    run;
NOTE: There were 19 observations read from the data set SASHELP.CLASS.
NOTE: The data set PUBLIC.CLASS_FORMAT_TEST has 19 observations and 6 variables.
NOTE: DATA statement used (Total process time):
      real time           0.01 seconds
      cpu time            0.03 seconds
      
91    
92    OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;
105 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 13 Feb 2020 09:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/624431#M537</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-02-13T09:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/624461#M538</link>
      <description>&lt;P&gt;You are missing two critical elements I mentioned before:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;a global scoped table (promoted) needs to be deleted first so that it can be written again&lt;BR /&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;proc&lt;/SPAN&gt; &lt;SPAN class="token function"&gt;delete&lt;/SPAN&gt; &lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt;&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;public&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;class_format_test&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;
&lt;SPAN class="token procnames"&gt;run&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;LI&gt;you have to promote the table so it has a global scope and can be seen in Visual Analytics&lt;BR /&gt;
&lt;PRE class=" language-sas"&gt;&lt;CODE class="  language-sas"&gt;&lt;SPAN class="token procnames"&gt;data&lt;/SPAN&gt; public&lt;SPAN class="token punctuation"&gt;.&lt;/SPAN&gt;class_format_test&lt;SPAN class="token punctuation"&gt;(&lt;/SPAN&gt;promote&lt;SPAN class="token operator"&gt;=&lt;/SPAN&gt;yes&lt;SPAN class="token punctuation"&gt;)&lt;/SPAN&gt;&lt;SPAN class="token punctuation"&gt;;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The NOTE message about the format "NOTE 484-185: Format MPGRATING was not found or could not be loaded." just says it can not be found in the SAS environment where the program is running, it will be found on the CAS server.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Feb 2020 12:25:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/624461#M538</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-02-13T12:25:22Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625231#M542</link>
      <description>&lt;P&gt;It still doesn't work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Format seems ok but there is no way to apply it.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas accas listfmtranges fmtname=MPGrating;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="sasSource"&gt;1 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;75&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;76 cas accas listfmtranges fmtname=MPGrating;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Format Name Range&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;MPGRATING LOW-&amp;lt;19=Poor&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;19-&amp;lt;24=Fair&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;24-&amp;lt;34=Good&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;34-HIGH=Excellent&lt;/DIV&gt;
&lt;DIV id="sasLogNote1_1581937243939" class="sasNote"&gt;NOTE: Request to LISTFMTRANGES MPGRATING completed for session ACCAS.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;77&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;78 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;91&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_218" class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas accas sessopts=(caslib="casuser");
cas accas listformats scope=global members;

libname public cas caslib="public";

options nofmterr;

proc delete data=public.class_format_test;
run;

data public.class_format_test(promote=yes);
  set sashelp.class;
  ageGroup = age*3+rand("normal",0, 4);
  format ageGroup MPGRATING.;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV class="sasSource"&gt;81 data public.class_format_test(promote=yes);&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;82 set sashelp.class;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;83 ageGroup = age*3+rand("normal",0, 4);&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;84 format ageGroup MPGRATING.;&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;----------&lt;/DIV&gt;
&lt;DIV class="sasError"&gt;484&lt;/DIV&gt;
&lt;DIV id="sasLogNote4_1581937822056" class="sasNote"&gt;NOTE 484-185: Format MPGRATING was not found or could not be loaded.&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;85 run;&lt;/DIV&gt;
&lt;DIV id="sasLogNote5_1581937822056" class="sasNote"&gt;NOTE: There were 19 observations read from the data set SASHELP.CLASS.&lt;/DIV&gt;
&lt;DIV id="sasLogNote6_1581937822056" class="sasNote"&gt;NOTE: The data set PUBLIC.CLASS_FORMAT_TEST has 19 observations and 6 variables.&lt;/DIV&gt;
&lt;DIV id="sasLogNote7_1581937822056" class="sasNote"&gt;NOTE: The data set CLASS_FORMAT_TEST was promoted.&lt;/DIV&gt;
&lt;DIV id="sasLogNote8_1581937822056" class="sasNote"&gt;NOTE: DATA statement used (Total process time):&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;real time 0.01 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;cpu time 0.00 seconds&lt;/DIV&gt;
&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;86&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;87 OPTIONS NONOTES NOSTIMER NOSOURCE NOSYNTAXCHECK;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;100&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_221" class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Feb 2020 11:12:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625231#M542</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-02-17T11:12:47Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625362#M543</link>
      <description>&lt;P&gt;And when I open VA this error prompt appears:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;com.sas.cas.CASException: The user-defined programming statements could not be parsed. (severity=2 reason=6 statusCode=2710055)&lt;BR /&gt;5 ERROR: The user-defined programming statements could not be parsed.&lt;BR /&gt;5 ERROR: Invalid FORMAT 'ENGINESIZE.' found.&lt;BR /&gt;5 ERROR: Failure opening table 'CARS'&lt;BR /&gt;5 ERROR: The action stopped due to errors.&lt;BR /&gt;debug=0x887ff837:TKCASTAB_PARSE_ERROR&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In SAS Studio the format was applied correctly when I wrote the table to a caslib.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 17:25:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625362#M543</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-02-17T17:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625421#M545</link>
      <description>&lt;P&gt;Please run the below code, it will show information about the cas table (similar to what you get with Proc contents). It will also run something similar to "proc freq" using the column with the user defined format. You might need to adjust names for caslib= and name= etc. depending on how you are testing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
proc cas;
  action table.columninfo / table={caslib="public" name="class_format_test"};
  action freqTab.freqTab / table={caslib="public" name="class_format_test"} 
  tabulate={
  	{vars={'ageGroup'}}
  }
  display={ names={"OneWayFreqs"} } 
  ;
run;
quit;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 17 Feb 2020 20:02:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625421#M545</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-02-17T20:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625422#M546</link>
      <description>&lt;P&gt;You show log with a table named class_format_test, but the message above is for a different table as well as a different format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have you checked in VA with the table class_format_test in cas library public?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 20:04:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625422#M546</guid>
      <dc:creator>BrunoMueller</dc:creator>
      <dc:date>2020-02-17T20:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625542#M548</link>
      <description>&lt;P&gt;I'd like to thank you for not giving up with my issue &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running the above code works in SAS Studio to assign the desired format.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But that's not the final goal! I want the UDF to be applied in Visual Analytics.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I cannot find a way to achieve this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are still many open questions related to this:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;How do I delete a format? I had to create a new one, class_age, because it didn't let overwrite the existing class_age_group&lt;/LI&gt;
&lt;LI&gt;How Do I interpret the attached output of "listformats"? Does my UDF require global scope and fmtseach put to YES in order to be found in Visual Analytics? When entering the format catalogues under Manage Environment I can see my UDF&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="sasSource"&gt;85 cas accas listformats;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;NOTE: Fmtlib = FMTLIB1&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Scope = Global&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Fmtsearch = NA&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;NOTE: Fmtlib = MYFMTLIB&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Scope = Global&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Fmtsearch = NA&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;NOTE: Fmtlib = MYFMTLIB&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Scope = Session&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Fmtsearch = YES&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;
&lt;DIV class="sasSource"&gt;87 cas accas listformats scope=session members;&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;NOTE: Fmtlib = MYFMTLIB&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Scope = Session&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Fmtsearch = YES&lt;/DIV&gt;
&lt;DIV class="sasSource"&gt;Format = mpgrating&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_267" class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE id="pre_sasLog_267" class="sasLog"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas sugus sessopts=(caslib="casuser");
cas sugus listformats scope=global members;

libname public cas caslib="public";

options nofmterr;

cas sugus dropfmtlib fmtlibname=myFmtLib  /* 2 */
fmtsearchremove;

proc format sessref=sugus casfmtlib="myFmtLib";  /* 4 */
   value class_age
      13  -  HIGH = "old"
      12  -&amp;lt; 13   = "normal"
      LOW -&amp;lt; 12   = "young";
run;


proc delete data=public.class_format_test;
run;

data public.class_format_test(promote=yes);
  set sashelp.class;
  ageGroup = age;
  format ageGroup class_age.;
run;

proc cas;
  action table.columninfo / table={caslib="public" name="class_format_test"};
  action freqTab.freqTab / table={caslib="public" name="class_format_test"} 
  tabulate={
  	{vars={'ageGroup'}}
  }
  display={ names={"OneWayFreqs"} } 
  ;
run;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 18 Feb 2020 08:59:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625542#M548</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-02-18T08:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625558#M551</link>
      <description>&lt;P&gt;I've finally achieved my goal:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There was one missing link, I had to promote the format by running the following lines&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;cas sugus savefmtlib fmtlibname=myFmtLib         /* 5 */
   table="myFmtLib.sashdat" caslib=casuser replace;

cas sugus addfmtlib fmtlibname=myFmtLib     /* 2 */
   table="myFmtLib.sashdat" caslib=casuser replacefmtlib;

cas sugus promotefmtlib fmtlibname=myFmtLib replace;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="va UDF.jpg" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/36210iD34D62F72689A77D/image-size/large?v=v2&amp;amp;px=999" role="button" title="va UDF.jpg" alt="va UDF.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 09:33:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/625558#M551</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-02-18T09:33:26Z</dc:date>
    </item>
    <item>
      <title>Re: apply user defined format UDF</title>
      <link>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/685214#M670</link>
      <description>&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/32"&gt;@BrunoMueller&lt;/a&gt; could you please help me again? The same error occurs again despite I'd say me doing the same that brought me the solution last time. I've opened a question named UDF Visual Analytics.</description>
      <pubDate>Sat, 19 Sep 2020 18:56:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Viya/apply-user-defined-format-UDF/m-p/685214#M670</guid>
      <dc:creator>acordes</dc:creator>
      <dc:date>2020-09-19T18:56:09Z</dc:date>
    </item>
  </channel>
</rss>

