At close, the Sensex was up 141.51 points or 0.37% at 38182.08, and the Nifty was up 60.70 points or 0.54% at 11274.70 on the back of positive global cues, encouraging quarterly numbers by select pharma companies and the government's push for Atmanirbhar Bharat (Self-Reliant India). M&M was the top Sensex gainer, followed by Cipla, Larsen & Toubro (L&T), Sun Pharma, Kotak Mahindra Bank, HDFC and State Bank of India (SBI). while losers included Eicher Motors, Asian Paints, Maruti Suzuki, BPCl and Reliance Industries. About 1723 shares have advanced, 996 shares declined, and 166 shares are unchanged. Nifty Pharma index gained 5.5 per cent. Except, Nifty Metal index, all other sectoral indices were trading in green. Midcap and Smallcap indices ended with over 1 per cent gain.