<?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: string and variable concatenation in Discussions</title>
    <link>https://community.jmp.com/t5/Discussions/string-and-variable-concatenation/m-p/56312#M31617</link>
    <description>&lt;P&gt;You need to declare the column as being of a Data Type, Character and in order to concatenate numeric variables, they need to be converted to character references, char()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Summary_Stat &amp;lt;&amp;lt; New Column( "SUMMARY_CPK_SPEC_Limit",
	Character,
	Formula(
		If(
			:Name( "CPK(SPEC_Limit)" ) &amp;lt; low, "too Low CPK",
			If(
				:Name( "CPK(SPEC_Limit)" ) &amp;gt; high, "too high CPK",
				"good CPK between " || char(Low) || " and " || Char(high) || " ",
			),
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Thu, 03 May 2018 09:47:56 GMT</pubDate>
    <dc:creator>txnelson</dc:creator>
    <dc:date>2018-05-03T09:47:56Z</dc:date>
    <item>
      <title>string and variable concatenation</title>
      <link>https://community.jmp.com/t5/Discussions/string-and-variable-concatenation/m-p/56308#M31615</link>
      <description>&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;Hello,&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;i would like to create a new column based on result of another column,&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;but i'm not able to write into column the results in case of third option, probably due to concatenate error...(see log below)&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;note"&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&lt;STRONG&gt;low&lt;/STRONG&gt; and &lt;STRONG&gt;high&lt;/STRONG&gt; are numeric variables previousy declared.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Summary_Stat &amp;lt;&amp;lt; New Column( "SUMMARY_CPK_SPEC_Limit",
    Formula(
        If(
            :Name( "CPK(SPEC_Limit)" ) &amp;lt; low, "too Low CPK",
            If(
                :Name( "CPK(SPEC_Limit)" ) &amp;gt; high, 

                    "too high CPK", 

                "good CPK between " || Low || " and " || high || " ",
            ),
        )
    )
);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Column SUMMARY_CPK_SPEC_Limit Formula Interrupted&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Consolas" size="2"&gt;argument should be character 1 times At rows: 2 Operation: Concat, Bad Argument( Low ), "good CPK between " || &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;/*###*/&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;Low || &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;/*###*/&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;" and " || &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;/*###*/&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;high || &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;/*###*/&lt;/FONT&gt;&lt;FONT face="Consolas" size="2"&gt;" " &lt;/FONT&gt;&lt;FONT face="Consolas" size="2" color="#008000"&gt;/*###*/&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Jun 2023 23:24:59 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/string-and-variable-concatenation/m-p/56308#M31615</guid>
      <dc:creator>gianpaolo</dc:creator>
      <dc:date>2023-06-09T23:24:59Z</dc:date>
    </item>
    <item>
      <title>Re: string and variable concatenation</title>
      <link>https://community.jmp.com/t5/Discussions/string-and-variable-concatenation/m-p/56312#M31617</link>
      <description>&lt;P&gt;You need to declare the column as being of a Data Type, Character and in order to concatenate numeric variables, they need to be converted to character references, char()&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-jsl"&gt;Summary_Stat &amp;lt;&amp;lt; New Column( "SUMMARY_CPK_SPEC_Limit",
	Character,
	Formula(
		If(
			:Name( "CPK(SPEC_Limit)" ) &amp;lt; low, "too Low CPK",
			If(
				:Name( "CPK(SPEC_Limit)" ) &amp;gt; high, "too high CPK",
				"good CPK between " || char(Low) || " and " || Char(high) || " ",
			),
		)
	)
);&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 03 May 2018 09:47:56 GMT</pubDate>
      <guid>https://community.jmp.com/t5/Discussions/string-and-variable-concatenation/m-p/56312#M31617</guid>
      <dc:creator>txnelson</dc:creator>
      <dc:date>2018-05-03T09:47:56Z</dc:date>
    </item>
  </channel>
</rss>

