Ah Good old times...
To get the chainsaw in Doom you need to unlock the computer room on lvl 2...You can unlock it by going left in the room full of acid and activate the switch.Then go back and you should notice new room infront of you.Ok,room is full of enemies but you should go right until you reach green armor...Now shoot the wall infront of armor and you should unlock the room leading you to chainsaw...