The dollar edged higher against a basket of currencies and could rise further in the near term due to the energy price shock from the Iran war. It fell slightly, however, against the yen.