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
 

 

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 How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts compare 2 rows within the same file ram_vizag SYNCSORT 7 Wed Jun 14, 2017 12:34 am
No new posts To display values of multiple rows in... vinu78 DB2 2 Thu Mar 09, 2017 1:20 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts how to send just 10 rows in a CICS sc... Megha Gupta CICS 5 Thu Feb 23, 2017 6:57 pm


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