Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

SQL 310 - Inserting Numberic data into Packed decimal field

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
Kanagaraj

New User


Joined: 20 Jan 2006
Posts: 3
Location: Shanghai

PostPosted: Fri Jan 09, 2009 8:34 pm    Post subject: SQL 310 - Inserting Numberic data into Packed decimal field
Reply with quote

Input field:

Input File field definition:
Input-Amt Pic 9(8)v9(4).

DB2 table DCL field:
DCLIN-AMT PIC S9(5)v9(4) comp-3

When I move the input field value into DCL field I am not getting any issues. But While inserting the data into DB2 table I am getting -310 SQL error.

Kindly some one help us on this.

Thanks
Raj
Back to top
View user's profile Send private message

William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3158
Location: Tucson AZ

PostPosted: Fri Jan 09, 2009 8:46 pm    Post subject: Re: SQL 310 - Inserting Numberic data into Packed decimal fi
Reply with quote

Kanagaraj wrote:
When I move the input field value into DCL field I am not getting any issues.
Generally, a move from a display numeric to a comp-3 field is a simple PACK, which will only abend with an access exception....
Quote:
But While inserting the data into DB2 table I am getting -310 SQL error.
But DB2 checks further, and knows that the source field contains garbage......
Hex display the source field......
By the way, did you look up the -310 error?
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am
No new posts NDM syntax checking without actually ... GAPX1 All Other Mainframe Topics 0 Wed Jun 07, 2017 2:36 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us