... sorry !!!
here is what i want to do
..
----------------------------------------------------------------------------------
i have 2 DS(data set), each havin 3 fields
DS1
fld1 fld2 fld3
----- ------ -----
01 NAME1 10
02 NAME2 13
03 NAME3 08
04 NAME4 16
DS2
fld1 fld2 fld4
----- ------ -----
01 NAME1 M
02 NAME5 F
03 NAME6 M
04 NAME2 F
IF THE FLD2 OF BOTH (DS1 AND DS2) ARE SAME I WANT TO WRITE THE RECORD FROM DS1 INTO ANOTHER DS3.
DS3
fld1..... fld2.... fld3
------- -------- -----------
NAME1 10 M
NAME2 13 F