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
 

 

DB2 table insert

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
venkatatcts

New User


Joined: 16 Mar 2009
Posts: 55
Location: India

PostPosted: Thu Oct 28, 2010 1:39 pm    Post subject: DB2 table insert
Reply with quote

Hi,

I am trying to insert a row in a production table using a job which I have tested it in test region where it worked.

In Test region execution everything works fine

In Production also i am getting SQL code as 0 and SQl state also as 0 but rows are not inserted correctly.

Can anybody faced similar kind of issue.

IKJ56644I NO VALID TSO USERID, DEFAULT USER ATTRIBUTES USED


RESULT OF SQL STATEMENT:
DSNT400I SQLCODE = 000, SUCCESSFUL EXECUTION
DSNT418I SQLSTATE = 00000 SQLSTATE RETURN CODE
DSNT416I SQLERRD = 0 0 1 -1 0 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'00000000' X'00000000' X'00000001' X'FFFFFFFF' X'000
INFORMATION
SUCCESSFUL INSERT OF 1 ROW(S)
Back to top
View user's profile Send private message

dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Oct 28, 2010 1:42 pm    Post subject:
Reply with quote

Quote:
but rows are not inserted correctly.


would you like to elaborate on that remark?

Quote:
IKJ56644I NO VALID TSO USERID, DEFAULT USER ATTRIBUTES USED


do you have a problem with the above informational message?
Back to top
View user's profile Send private message
venkatatcts

New User


Joined: 16 Mar 2009
Posts: 55
Location: India

PostPosted: Thu Oct 28, 2010 1:51 pm    Post subject: Reply to: DB2 table insert
Reply with quote

Hi,

No I have just copied all the message from the job. Rows are not inserted into table. But return code and sqlcode , sqlstate are looking good. I am not able figure out why it was not updated correctly to table. but i don;t know how it works in test.

Thanks,
Venkatraman B.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6968
Location: porcelain throne

PostPosted: Thu Oct 28, 2010 2:17 pm    Post subject:
Reply with quote

Quote:
SUCCESSFUL INSERT OF 1 ROW(S)


somewhere (a particular DB2), someplace (a particular db2 table)
a row was inserted

you can't find it, so you assume DB2 has made some kind of error.

you are not being very helpful with your responses.
you have posted twice to tell us that
  • a job was run with somekind of utility/program
  • to insert a row someplace
  • and since you can't find the row, you figure the system has made an error


you need to elaborate or you will continue to receive the same kind of responses.
Back to top
View user's profile Send private message
GuyC

Senior Member


Joined: 11 Aug 2009
Posts: 1281
Location: Belgium

PostPosted: Thu Oct 28, 2010 4:19 pm    Post subject:
Reply with quote

maybe a rollback afterwards ?
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Thu Oct 28, 2010 7:37 pm    Post subject:
Reply with quote

Hello,

I suspect the insert may have happened in some "other" subsystem or table . . . .
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1770
Location: Bloomington, IL

PostPosted: Thu Oct 28, 2010 7:51 pm    Post subject: Re: DB2 table insert
Reply with quote

venkatatcts wrote:
Hi,

I am trying to insert a row in a production table using a job which I have tested it in test region where it worked.

In Test region execution everything works fine

In Production also i am getting SQL code as 0 and SQl state also as 0 but rows are not inserted correctly.

Can anybody faced similar kind of issue.

IKJ56644I NO VALID TSO USERID, DEFAULT USER ATTRIBUTES USED

RESULT OF SQL STATEMENT:
DSNT400I SQLCODE = 000, SUCCESSFUL EXECUTION
DSNT418I SQLSTATE = 00000 SQLSTATE RETURN CODE
DSNT416I SQLERRD = 0 0 1 -1 0 0 SQL DIAGNOSTIC INFORMATION
DSNT416I SQLERRD = X'00000000' X'00000000' X'00000001' X'FFFFFFFF' X'000
INFORMATION
SUCCESSFUL INSERT OF 1 ROW(S)

How are your tables qualified? Do you have RACF on your system?
Back to top
View user's profile Send private message
bputhirakond

New User


Joined: 22 Sep 2008
Posts: 1
Location: Chennai

PostPosted: Fri Oct 29, 2010 5:48 pm    Post subject: Reply to: DB2 table insert
Reply with quote

If the Insert is successful, there is a reason could be selecting a subsystem / schema name is wrongly while selecting the production table.
Many systems have diff schema name for Test and Production. So, better to use correct schema name while selecting the table.
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 -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 18 Thu Jul 13, 2017 2:11 pm
No new posts unload data from table with lob columns farhad_evan DB2 1 Sat Apr 22, 2017 1:32 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm
No new posts Join of more than one table dibyendumandal11111 DB2 6 Mon Feb 13, 2017 11:36 pm


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