Quantcast
Viewing all articles
Browse latest Browse all 1524

Extracts the Nth character of a CHAR or CLOB variable

This function extracts the Nth character of a CHAR or CLOB variable. This function runs much faster than the usual functions such as mid$or seg$ when managing large CLOB data.

Syntax :    EXTRACTED_CHARACTER=Xgetchar(CLOB_SOURCE,POSITION)

Parameters:

  • CLOB_SOURCE has been declared by using a Clbfile or a Char
  •  POSITION has been declared by using an Integer
  • EXTRACTED_CHARACTER has been declared by using a Clbfile or a Char

Example:

# Find the 10th character in a CLOB

 

Local Clbfile PI_CHAR(0)

Local Char CHAR10

  PI_CHAR=num$(pi) : # contains “3.14158265358979323846264338328”

  CHAR10=Xgetchar(PI_CHAR,10) : # Returns “5”

 

Hope this blog helps!

 

About Us:

Greytrix is one stop solution provider for Sage ERP and Sage CRM needs. We provide complete end-to-end assistance for your technical consultations, product customizations, data migration, system integrations, third-party add-on development and implementation expertise.

Greytrix have some unique solutions of Sage X3’s integration with Sage CRM, Salesforce.com and Magento eCommerce. It also offers best-in-class Sage X3 customization and development services to Sage business partners, end users, and Sage PSG worldwide.

For more information on Sage X3 Integration and Services, please contact us at x3@greytrix.com.We will be glad to assist you.

 

Also Read:

 


Viewing all articles
Browse latest Browse all 1524

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>