The Sensex, the Nifty Midcap 100 and the Nifty Smallcap 100 indices managed to eke out marginal gains for the month ...