O K-edge and Cu L 23 -edge x-ray-absorption near-edge structure ͑XANES͒ spectra for the series of (Dy 1Ϫx Pr x )Ba 2 Cu 3 O 7Ϫ␦ compounds (xϭ0 -0.7) were measured to investigate how the variation of hole states related to the superconductivity. Near the O 1s edge, prepeaks at ϳ527.6 and ϳ528.4 eV are assigned to transitions into O 2p holes located in the CuO 3 ribbons and CuO 2 planes, respectively. Both the O 2p hole concentration in the CuO 2 planes and CuO 3 ribbons decrease monotonically with increasing Pr doping, giving evidence in support of the hole depletion model proposed by Liechtenstein and Mazin. It clearly demonstrates that the suppression of superconductivity with Pr-doping results predominantly from the hole depletion effect. In the Cu 2p absorption edge, the high-energy shoulders originating from Cu 3d 9 L defected states show a linear decrease in spectral weight as the Pr doping increases, where L denotes the ligand O 2p hole on the CuO 3 ribbons and the CuO 2 planes.