Choose a position for each curtain rod bracket above the sliding doors and mark it with a pencil. Measure the mark for the position of each bracket to make sure each is the same distance away from the sliding doors.
Place a level under or above the mark created for each bracket. Use the straight edge of the level to create a straight, horizontal line a few inches long where each mark is.
Hold one bracket to the wall on the straight line created with the level. With a pencil, mark the screw holes in the bracket on the wall.
Drill the wall anchors into the screw hole marks using a Phillips screwdriver or an electric drill.
Place the bracket back in position so each wall anchor is visible through its screw hole. Position each screw into the bracket's screw holes, and screw it into the predrilled wall anchors.
Repeat the process to install the additional one or two brackets. Then erase all pencil marks from the wall.
Hang the curtain on the rod. Then place the rod into the brackets above the sliding doors.