Hi All,
Am trying to move a numeric data item to COMP-3 variable... 9(13) to s9(13)v comp-3... Am using that COMP-3 variable to insert a record in the table. Am getting -310 SQL error code while doing so (DECIMAL HOST VARIABLE OR PARAMETER number CONTAINS NON-DECIMAL DATA) which means, the MOVE from numeric to COMP-3 is invalid.
Please provide ur suggestions.
NUMERIC to COMP-3 move
Moderators: dbzTHEdinosauer, Moderator Group
- dbzTHEdinosauer
- Moderator
- Posts: 981
- Joined: Mon Oct 02, 2006 8:31 pm
do you only have one numeric column in your ROW?
if you do not have a debugger, suggest you that you use DISPLAY verb to display the values of the host variable immediately before your SQL INSERT.
and your statement
if you do not have a debugger, suggest you that you use DISPLAY verb to display the values of the host variable immediately before your SQL INSERT.
and your statement
is not truewhich means, the MOVE from numeric to COMP-3 is invalid.
Dick Brenholtz
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
JCL, SQL and code in programs have an irritating habit of doing what you say,
not what you meant.
FREE TUTORIALS
Tutorials
Free tutorials from mainframegurukul
- JCL Tutorial
Covers all important JCL concepts. - Cobol Tutorial
This tutorials covers all Cobol Topics from STRING to COMP-3. - DB2 Tutorial
DB2 Tutorial focuses on DB2 COBOL Programming. - SORT Tutorial
This Tutorial covers all important aspects of DFSORT with examples - CICS Tutorial
This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions
- Cobol Interview Questions
50+ Interview Questions - JCL Interview Questions
50+ Interview Questions - DB2 Interview Questions
100+ Interview Questions - CICS Interview Questions
70+ Interview Questions - VSAM Interview Questions
27 Interview Questions
Other References
Mainframe Tools and others
- XPEDITER Reference
Explains how we can debug a program - FILEAID Reference
Explains how to browse , edit and delete datasets - Change Man Reference
Quick Start tutorial on Changeman - Abend Reference
Important Abend codes explained - FaceBook Page
MainframeGurukul FaceBook Page - LinkedIn Page
MainframeGurkul Linkedin Page