data insert issue

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
hargun
Participant
Posts: 188
Joined: Mon May 16, 2011 7:41 pm
Location: United States

data insert issue

Post by hargun »

hi i have question my job design is as follows:

Code: Select all

seq file..................> 
                                       merge stage..............>odbc(DB2 database1) 
odbc......................>        .                                               SVR.PORTF 
                                       . 
                                       .reject 
                                       . 
                                       . 
                                   odbcs (DB2 database)SVR.PORTF 
in seq file i have columns
account, Collatral, markt_val amt,PORTF_NM(account:collateral)

In odbc i have cloumns
PORTF_ID,PORTF_NM,PORTF_EFF_DT

i am merging seq file with odbc(master) based on PORT_NM and if match found result going to target database1 and If not found then from reject link do an insert and increment port_id with one

After merge my all record goes to reject by taking odbc as master so how can i increase PORTF_ID with one.

please tell me how i insert mAX(PORTF_ID) +1 to reject link database.

i didn't get any logic please reply me.
Last edited by hargun on Sat Jun 04, 2011 3:43 pm, edited 2 times in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Just so you know, posting in all caps is considered SHOUTING. Please don't shout.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Devendrudu
Participant
Posts: 31
Joined: Tue May 24, 2011 12:16 am

Re: data insert issue

Post by Devendrudu »

hi, first tel me which one is master? and if seq file is master how can u get these fields(account, Collatral, markt_val amt,PORTF_NM) in reject
Devendra,Bangalore,India
hargun
Participant
Posts: 188
Joined: Mon May 16, 2011 7:41 pm
Location: United States

Post by hargun »

sorry craig......

i really apologize for putting post in capital letters i have changed to lower case can you please reply me know
hargun
Participant
Posts: 188
Joined: Mon May 16, 2011 7:41 pm
Location: United States

Re: data insert issue

Post by hargun »

hi dev you are right if master is seq file how can i get these fields..........actually master is odbc and fileds now in reject link are portf_id,portf_nm and portf_eff_dt.....

so could you please tell how can i increment the portf_id with one and insert to the reject one target database .

please reply me.
Post Reply