Troubleshooting
Problem
User is wanting to post values from Planning Analytics to a relational database and use the SQLStmInsertODBC statement while using a variable, as oppose to hard coding them.
Example:
vVAR = 'CellGETN(dimension)';
SQLStmInsertODBC= 'insert into dbo.Table_One (code) values ( '''|vVAR|''' )';
odbcoutput ('SQL Test', SQLStmInsertODBC);
odbcoutput ('SQL Test', SQLStmInsertODBC);
This works well unless the value in question is numeric. The below error is encountered when attempting to post a numeric value by way of a variable on that statement.
Symptom
"1235","0",Data Source line (1) Error: Data procedure line (12): Error executing SQL query: "insert into dbo.Table_One (code) values ( |vVAR| )"
Document Location
Worldwide
[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSD29G","label":"IBM Planning Analytics"},"Component":"","Platform":[{"code":"PF033","label":"Windows"}],"Version":"All Versions","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSKVSF","label":"Planning Analytics on Cloud"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}},{"Product":{"code":"SSCTEW","label":"IBM Planning Analytics Local"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Component":" ","Platform":[{"code":"","label":""}],"Version":"","Edition":"","Line of Business":{"code":"LOB76","label":"Data Platform"}}]
Log InLog in to view more of this document
This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.
Was this topic helpful?
Document Information
Modified date:
24 June 2019
UID
ibm10956455