Superconducting and magnetic properties of Gd1−xPrxBa2Cu3O7−y system