Ending the week, domestic benchmark indices closed flat with a positive bias on Friday, as Sensex gained by a mere 0.04 per cent or 15.12 points to settle at 38,040.57 while Nifty rose by 0.12 per cent or by 13.90 points to reach the level of 11,214.05.