engine knocking and rough idle on 1992 Nissan Pickup (D21)

engine knocks when i gas it and the idle keeps jumping but when i gas it it accelerates good

Asked by for the 1992 Nissan Pickup (D21)
1 answer
check EGR vacum hose and or the EGR valve may need to be cleaned or replaced