<?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 format in SAS Data Management</title>
    <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541770#M16670</link>
    <description>&lt;P&gt;Hi, I am working on a dataset with microorganisms. For Proc format, my values are CMV_IgG_rev 1.'Present', 2.'Absent'. In Proc logistic, I put (ref='Absent') or (ref='2'), log turns out invalid reference value. Please guide me&lt;/P&gt;</description>
    <pubDate>Sun, 10 Mar 2019 02:25:53 GMT</pubDate>
    <dc:creator>wajs</dc:creator>
    <dc:date>2019-03-10T02:25:53Z</dc:date>
    <item>
      <title>format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541770#M16670</link>
      <description>&lt;P&gt;Hi, I am working on a dataset with microorganisms. For Proc format, my values are CMV_IgG_rev 1.'Present', 2.'Absent'. In Proc logistic, I put (ref='Absent') or (ref='2'), log turns out invalid reference value. Please guide me&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 02:25:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541770#M16670</guid>
      <dc:creator>wajs</dc:creator>
      <dc:date>2019-03-10T02:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541774#M16671</link>
      <description>So far, you haven't posted even a scrap of a SAS statement that would run without error.  Guidance:  post the log.</description>
      <pubDate>Sun, 10 Mar 2019 03:39:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541774#M16671</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-10T03:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541777#M16672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;proc logistic data= pe. matched_21_plus_co_inf_updated;&lt;BR /&gt;strata group;&lt;BR /&gt;class CMV_IgG_rev (ref='2');&lt;BR /&gt;model PEstatus (event='1')= CMV_IgG_rev;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Log:&lt;/P&gt;&lt;P&gt;288 proc logistic data= pe. matched_21_plus_co_inf_updated;&lt;BR /&gt;NOTE: Data file PE.MATCHED_21_PLUS_CO_INF_UPDATED.DATA is in a format that is native to another&lt;BR /&gt;host, or the file encoding does not match the session encoding. Cross Environment Data Access&lt;BR /&gt;will be used, which might require additional CPU resources and might reduce performance.&lt;BR /&gt;289 strata group;&lt;BR /&gt;290 class CMV_IgG_rev (ref='2');&lt;BR /&gt;291 model PEstatus (event='1')= CMV_IgG_rev;&lt;BR /&gt;292 run;&lt;/P&gt;&lt;P&gt;ERROR: Invalid reference value for CMV_IgG_rev.&lt;BR /&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;NOTE: There were 78 observations read from the data set PE.MATCHED_21_PLUS_CO_INF_UPDATED.&lt;BR /&gt;NOTE: PROCEDURE LOGISTIC used (Total process time):&lt;BR /&gt;real time 0.08 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 03:59:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541777#M16672</guid>
      <dc:creator>wajs</dc:creator>
      <dc:date>2019-03-10T03:59:31Z</dc:date>
    </item>
    <item>
      <title>Re: format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541793#M16673</link>
      <description>When you run a PROC CONTENTS on your data set, what do you see for CMV_lgG_rev?&lt;BR /&gt;&lt;BR /&gt;Character or numeric?&lt;BR /&gt;&lt;BR /&gt;Format?</description>
      <pubDate>Sun, 10 Mar 2019 06:52:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541793#M16673</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-10T06:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541848#M16679</link>
      <description>&lt;P&gt;Hi, Thanks for the advice! Here is the output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="branch"&gt;&lt;DIV&gt;&lt;DIV align="center"&gt;Variables in Creation Order# Variable Type Len Format Informat12345 &lt;TABLE cellspacing="0" cellpadding="5"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;group&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;type&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;7&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;ID&lt;/TD&gt;&lt;TD&gt;Char&lt;/TD&gt;&lt;TD&gt;4&lt;/TD&gt;&lt;TD&gt;$100.&lt;/TD&gt;&lt;TD&gt;$100.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;PEstatus&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;CMV_IgG_rev&lt;/TD&gt;&lt;TD&gt;Num&lt;/TD&gt;&lt;TD&gt;8&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;TD&gt;BEST12.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Sun, 10 Mar 2019 18:35:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541848#M16679</guid>
      <dc:creator>wajs</dc:creator>
      <dc:date>2019-03-10T18:35:31Z</dc:date>
    </item>
    <item>
      <title>Re: format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541849#M16680</link>
      <description>&lt;P&gt;Why do you have quotes around a numeric value?&lt;/P&gt;</description>
      <pubDate>Sun, 10 Mar 2019 18:41:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541849#M16680</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2019-03-10T18:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541853#M16681</link>
      <description>OK, based on that here are two things to try.  Admittedly these are educated guesses only!&lt;BR /&gt;&lt;BR /&gt;First, add this statement as part of PROC LOGISTIC.  It can never hurt and might help:&lt;BR /&gt;&lt;BR /&gt;format CMV_lgG_rev;&lt;BR /&gt;&lt;BR /&gt;Second, are you certain the quotes belong when using a numeric variable?  Is it possible the syntax should be (as Tom mentioned):&lt;BR /&gt;&lt;BR /&gt;class CMV_lgG_rev (ref=2);</description>
      <pubDate>Sun, 10 Mar 2019 19:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541853#M16681</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-10T19:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541898#M16683</link>
      <description>&lt;P&gt;Thanks for the guidance!&lt;/P&gt;&lt;P&gt;After removing quotes, here is the log, it was the same whether I used format statement or not:&lt;/P&gt;&lt;P&gt;NOTE: The SAS System stopped processing this step because of errors.&lt;BR /&gt;307 strata group;&lt;BR /&gt;308 class CMV_IgG_rev (ref=2);&lt;BR /&gt;-&lt;BR /&gt;22&lt;BR /&gt;200&lt;BR /&gt;ERROR 22-322: Syntax error, expecting one of the following: a quoted string, FIRST, LAST.&lt;BR /&gt;ERROR 200-322: The symbol is not recognized and will be ignored.&lt;BR /&gt;309 model PEstatus (event='1')= CMV_IgG_rev;&lt;BR /&gt;310 run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 07:15:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/541898#M16683</guid>
      <dc:creator>wajs</dc:creator>
      <dc:date>2019-03-11T07:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: format</title>
      <link>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/542031#M16684</link>
      <description>&lt;P&gt;Sorry to say, I'm unable to help further.&amp;nbsp; I don't have access to LOGISTIC any more for testing purposes.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There must be a few stat gurus lurking who can finish this one!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 14:38:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Data-Management/format/m-p/542031#M16684</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2019-03-11T14:38:05Z</dc:date>
    </item>
  </channel>
</rss>

