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

when insert rows generate new value and insert


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
george16

New User


Joined: 08 Jul 2010
Posts: 11
Location: chennai

PostPosted: Wed Jul 28, 2010 5:28 pm
Reply with quote

Blact_bal_type_cd dibg_r inq_bal inq_bal_seq
------------------------------------------------------------------------
XSVNREGT MD 2 8657
XSVNREGT NR 2 8675
AAAAAAAA YR 2 1111
CCCCCCC AB 2 0
DDDDDDD HH 2 4


When i insert the new row inq_bal_seq value as a new value
if inq_bal = 2 then i need to insert one more row for other than inq_bal_seq..

key : blact_bal_type_cd

give some idea?
Back to top
View user's profile Send private message
smijoss

Active User


Joined: 30 Aug 2007
Posts: 114
Location: pune

PostPosted: Wed Jul 28, 2010 6:18 pm
Reply with quote

would you explain in a better way.... its difficult to understand
Back to top
View user's profile Send private message
george16

New User


Joined: 08 Jul 2010
Posts: 11
Location: chennai

PostPosted: Wed Jul 28, 2010 8:13 pm
Reply with quote

Blact_bal_type_cd dibg_r inq_bal inq_bal_seq
--------------------- -------- -------- --------------
XSVNREGT MD 2 8657
XSVNREGT NR 2 8675
AAAAAAAA YR 2 1111
CCCCCCC AB 2 0
DDDDDDD HH 2 4


Actually i need to insert one more row,
that same insert row inq_bal_seq value automatically genarate and insert.
that value should unique value.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Wed Jul 28, 2010 8:18 pm
Reply with quote

learn to use BBcode,
it makes your examples much easier to read.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts XML-GENERATE - atomic node with attri... COBOL Programming 6
No new posts Sort card to generate the DSN DFSORT/ICETOOL 17
No new posts XML Generate - suppression of complex... COBOL Programming 0
No new posts Sort to insert record in an empty file. DFSORT/ICETOOL 5
No new posts XML Generate issue COBOL Programming 0
Search our Forums:


Back to Top