{"id":9052,"date":"2016-07-25T07:17:29","date_gmt":"2016-07-25T07:17:29","guid":{"rendered":"http:\/\/www.greytrix.com\/blogs\/sagex3\/?p=9052"},"modified":"2016-07-25T07:17:29","modified_gmt":"2016-07-25T07:17:29","slug":"how-to-concatenate-two-strings","status":"publish","type":"post","link":"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/07\/25\/how-to-concatenate-two-strings\/","title":{"rendered":"How to Concatenate Two Strings"},"content":{"rendered":"<p>You may come across the situation, where you want to concatenate a char or CLOB value to a char or CLOB variable. Sage X3 has a special Keyword named APPEND to perform the concatenation of two or more string values.<\/p>\n<p>From a functional point of view,<strong> Append Field1, Field2<\/strong> is equivalent to <strong>Field1+= Field2. <strong>\u00a0<\/strong><\/strong>if \u2018Field1\u2019 and &#8216;Field2&#8217; are strings or CLOBs. Execution is fast using Append keyword especially if you build long strings stored in CLOBs.<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/concatenate-two-strings.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter size-full wp-image-9053\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/concatenate-two-strings.jpg\" alt=\"concatenate two strings\" width=\"550\" height=\"189\" \/><\/a><\/p>\n<p>The output of the above code is following:<\/p>\n<p><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/sage-X3-concatenate-two-strings.jpg\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9054\" src=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-content\/uploads\/2016\/07\/sage-X3-concatenate-two-strings.jpg\" alt=\"sage X3-concatenate two strings\" width=\"180\" height=\"127\" \/><\/a><\/p>\n<p class=\"PreformattedText\"><span lang=\"EN-IN\">Also Read:<\/span><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/03\/25\/4921\/\" target=\"_blank\">Determine Record Size of Tables in X3<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2015\/09\/02\/how-to-get-rowcount-in-sage-x3\/\" target=\"_blank\">How to get Row count in Sage X3?<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/06\/30\/how-to-get-the-number-of-records-which-is-deleted-by-delete-command\/\" target=\"_blank\">How to get the number of records which is deleted by Delete Command<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/05\/25\/how-to-get-the-number-of-records-modified-by-update-command\/\" target=\"_blank\">How to get the number of records modified by Update Command<\/a><\/p>\n<p>&#8211;\u00a0<a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2014\/03\/19\/checking-the-type-of-variable\/\" target=\"_blank\">How to determine if a mask variable can be entered or is displayed..?<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>You may come across the situation, where you want to concatenate a char or CLOB value to a char or CLOB variable. Sage X3 has a special Keyword named APPEND to perform the concatenation of two or more string values. From a functional point of view, Append Field1, Field2 is equivalent to Field1+= Field2. \u00a0if\u2026 <span class=\"read-more\"><a href=\"https:\/\/www.greytrix.com\/blogs\/sagex3\/2016\/07\/25\/how-to-concatenate-two-strings\/\">Read More &raquo;<\/a><\/span><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[380,381,924,1839,1941,1942,1943],"class_list":["post-9052","post","type-post","status-publish","format-standard","hentry","category-sage-erp-x3","tag-concatenate-two-strings","tag-concatenation-in-sage-x3","tag-greytrix-blogs","tag-sage-x3-blogs","tag-sage-x3-technical","tag-sage-x3-technical-assistance","tag-sage-x3-technical-blog"],"_links":{"self":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9052","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/comments?post=9052"}],"version-history":[{"count":0,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/posts\/9052\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/media?parent=9052"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/categories?post=9052"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.greytrix.com\/blogs\/sagex3\/wp-json\/wp\/v2\/tags?post=9052"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}