Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
when insert rows generate new value and insert

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: when insert rows generate new value and insert
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    Post subject:
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    Post subject:
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: 6968
Location: porcelain throne

PostPosted: Wed Jul 28, 2010 8:18 pm    Post subject:
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    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 Conditional highlighting of rows in I... packerm CLIST & REXX 2 Thu Sep 21, 2017 6:50 pm
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts column with count of rows within dist... ronald wouterson DB2 4 Sun Sep 17, 2017 9:48 pm
No new posts Generate public-private key in batch ... vasanthz All Other Mainframe Topics 3 Fri Sep 15, 2017 9:20 am
No new posts Convert rows and column into JSON for... Dinesh Manivannan DB2 2 Sun Sep 03, 2017 6:50 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us