IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

SQL 310 - Inserting Numberic data into Packed decimal field


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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: 3156
Location: Tucson AZ

PostPosted: Fri Jan 09, 2009 8:46 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Store the data for fixed length COBOL Programming 1
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts Replace Multiple Field values to Othe... DFSORT/ICETOOL 12
No new posts SCOPE PENDING option -check data DB2 2
Search our Forums:

Back to Top