Narrative:

On entering downwind leg ATC advised of departure traffic that would pass in front of us. We reported to ATC that traffic was not in sight and [asked] if they would like us to modify our downwind to mitigate traffic issue. ATC told us to fly downwind at our discretion and to maintain 1;500 feet MSL until advised. I was able to see traffic who was slightly above us but appeared contact was imminent. I made an evasive dive and turn to avoid collision. We were on flight following with norcal and assigned transponder code prior to entry into class D airspace. Tower was notified of evasive action.

Google
 

Original NASA ASRS Text

Title: PA-28 pilot reported an NMAC in the pattern at RHV.

Narrative: On entering downwind leg ATC advised of departure traffic that would pass in front of us. We reported to ATC that traffic was not in sight and [asked] if they would like us to modify our downwind to mitigate traffic issue. ATC told us to fly downwind at our discretion and to maintain 1;500 feet MSL until advised. I was able to see traffic who was slightly above us but appeared contact was imminent. I made an evasive dive and turn to avoid collision. We were on flight following with NORCAL and assigned transponder code prior to entry into Class D airspace. Tower was notified of evasive action.

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.