lobsize returns the size (in bytes) used for the storage of BLOB or CLOB variable.
Syntax:
lobsize(BLOB_CLOB)
Example:
# How much space spent for a clob?
Local Clbfile MY_CLOB(0)
MY_SIZE=lobsize(MY_CLOB) : # Returns 1016 (stores 508 characters)
My_CLOB=string$(50,space$(10))+space$(9) : # Assign a 509 character string
MY_SIZE=lobsize(MY_CLOB) : # Returns 66550 (MY_CLOB has been automatically enlarged)
Local Clbfile MY_CLOB(1)
MY_SIZE=lobsize(MY_CLOB) : # Returns 2040
# Here I is an integer value between 0 and 10
Local Clbfile MY_CLOB(I)
MY_SIZE=lobsize(MY_CLOB) : # Returns 2^(10+I)-8
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.