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 Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Append data from two files into a sin... Praveen04 DFSORT/ICETOOL 5 Thu Mar 16, 2017 7:29 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts IMS DB-How to update a record (a sing... Nic Clouston IMS DB/DC 9 Thu Mar 09, 2017 4:38 pm
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am


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