I didn't dismiss him or anything, he just left. He's not at the bannered mare and I don't want to reload the game to when I had him and lose like two hours of gameplay. I was wondering what the code is for him so I can get him back through the console commands.
Sam dissapeared (2 comments)
"find general" in the console
look for general sams id and then type player.placeatme [sams code]
minus the [ and [