View previous topic :: View next topic
|
Author |
Message |
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
Hi,
Can anyone pls let me value what is value of SQLCODE "00000031}"
I know "}" is EBCDIC code, but i am not able to find its actual value?
Is it -310 ? (It's a guess) |
|
Back to top |
|
|
Akatsukami
Global Moderator
Joined: 03 Oct 2009 Posts: 1788 Location: Bloomington, IL
|
|
|
|
apandey wrote: |
Hi,
Can anyone pls let me value what is value of SQLCODE "00000031}"
I know "}" is EBCDIC code, but i am not able to find its actual value?
Is it -310 ? (It's a guess) |
Yes. |
|
Back to top |
|
|
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
Can anyone pls provide list of EBCDIC code and its actual value ?
Actually I searched in this forum, few EBCDIC codes and its value is given but I was not able to find value "}" , I tried to goole it and then tried to "QW" in mainframe but not found the answer. Finally I posted.
I may be right but as i said it was a guess. I m still not sure with my guess. |
|
Back to top |
|
|
don.leahy
Active Member
Joined: 06 Jul 2010 Posts: 765 Location: Whitby, ON, Canada
|
|
|
|
What is the hex value of the "31}" SQLCODE? Once you look at this, the meaning will be obvious. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
Thanks everyone for quick response. |
|
Back to top |
|
|
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
Hi All,
1 more issue i am getting, I have a DB2 Insert statement, in which I was getting SQLcode -310.
Its description is (DECIMAL HOST VARIABLE OR PARAMETER number CONTAINS NON-DECIMAL DATA).
So I tried to find out all numeric fields which I am inserting in the table.
I found those numeric field and commented out in INSERT statement.
But still I am getting same Sqlcode -310. There are around 40 fields which i m inerting in my table to INSERT statement.
Is there any way to find out, on which exact field it is giving SQLCODE -310 ? |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
a professional would use a CALL to DSNTIAR to expand the SQLCA after receiving a negative SQLCODE.
in the expansion of the -310 SQLCODE, it provids the parameter number of the parm causing the error. |
|
Back to top |
|
|
apandey
New User
Joined: 31 Aug 2009 Posts: 73 Location: Mumbai
|
|
|
|
Hi dbzTHEdinosauer,
Sorry I have seen this in compile listing of program.
but i don't know how to expand CALL to DSNTIAR
or where to see the fields in CALL to DSNTIAR.
Can you pls help.
Thanks. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
Back to top |
|
|
|