Question: In what year was celibacy in the priesthood affirmed in the ordinances that previously Paul had wanted to reform.

full_context: Document 1: Casti connubii: Casti connubii (Latin: "of chaste wedlock") was a papal encyclical promulgated by Pope Pius XI on 31 December 1930 in response to the Lambeth Conference of the Anglican church. It stressed the sanctity of marriage, prohibited Catholics from using any form of artificial birth control, and reaffirmed the prohibition on abortion. It also explained the authority of Church doctrine on moral matters, and advocated that civil governments follow the lead of the Church in this area.
Document 2: Pope John XXIII: Far from being a mere "stopgap" pope, to great excitement, John XXIII called for an ecumenical council fewer than ninety years after the First Vatican Council (Vatican I's predecessor, the Council of Trent, had been held in the 16th century). This decision was announced on 29 January 1959 at the Basilica of Saint Paul Outside the Walls. Cardinal Giovanni Battista Montini, who later became Pope Paul VI, remarked to Giulio Bevilacqua that "this holy old boy doesn't realise what a hornet's nest he's stirring up". From the Second Vatican Council came changes that reshaped the face of Catholicism: a comprehensively revised liturgy, a stronger emphasis on ecumenism, and a new approach to the world.
Document 3: Pope Paul VI: Ecclesiam suam was given at St. Peter's, Rome, on the Feast of the Transfiguration, 6 August 1964, the second year of his Pontificate. It is considered an important document, identifying the Catholic Church with the Body of Christ. A later Council document Lumen Gentium stated that the Church subsists in the Body of Christ, raising questions as to the difference between "is" and "subsists in". Paul VI appealed to "all people of good will" and discussed necessary dialogues within the Church and between the Churches and with atheism.
Document 4: Pope Paul VI: Pope Paul VI (Latin: Paulus VI; Italian: Paolo VI), born Giovanni Battista Enrico Antonio Maria Montini (Italian pronunciation: [dʒioˈvani baˈtista enˈriko anˈtonjo marˈija monˈtini]; 26 September 1897 – 6 August 1978), reigned as Pope from 21 June 1963 to his death in 1978. Succeeding Pope John XXIII, he continued the Second Vatican Council which he closed in 1965, implementing its numerous reforms, and fostered improved ecumenical relations with Eastern Orthodox and Protestants, which resulted in many historic meetings and agreements. Montini served in the Vatican's Secretariat of State from 1922 to 1954. While in the Secretariat of State, Montini and Domenico Tardini were considered as the closest and most influential colleagues of Pope Pius XII, who in 1954 named him Archbishop of Milan, the largest Italian diocese. Montini automatically became the Secretary of the Italian Bishops Conference. John XXIII elevated him to the College of Cardinals in 1958, and after the death of John XXIII, Montini was considered one of his most likely successors.
Document 5: Pope Paul VI: After his election as Bishop of Rome, Paul VI first met with the priests in his new dioceses. He told them that in Milan he started a dialogue with the modern world and asked them to seek contact with all people from all walks of life. Six days after his election he announced that he would continue Vatican II and convened the opening to take place on 29 September 1963. In a radio address to the world, Paul VI recalled the uniqueness of his predecessors, the strength of Pius XI, the wisdom and intelligence of Pius XII and the love of John XXIII. As "his pontifical goals" he mentioned the continuation and completion of Vatican II, the reform of the Canon Law and improved social peace and justice in the world. The Unity of Christianity would be central to his activities.
Document 6: Pope Paul VI: Of his eight encyclicals, Pope Paul VI is best known for his encyclical Humanae vitae (Of Human Life, subtitled On the Regulation of Birth), published on 25 July 1968. In this encyclical he reaffirmed the Catholic Church's traditional view of marriage and marital relations and a continued condemnation of artificial birth control. There were two Papal committees and numerous independent experts looking into the latest advancement of science and medicine on the question of artificial birth control. which were noted by the Pope in his encyclical The expressed views of Paul VI reflected the teachings of his predecessors, especially Pius XI, Pius XII and John XXIII and never changed, as he repeatedly stated them in the first few years of his Pontificate
Document 7: Pope Paul VI: Sacerdotalis caelibatus (Latin for "Of the celibate priesthood"), promulgated on 24 June 1967, defends the Catholic Church's tradition of priestly celibacy in the West. This encyclical was written in the wake of Vatican II, when the Catholic Church was questioning and revising many long-held practices. Priestly celibacy is considered a discipline rather than dogma, and some had expected that it might be relaxed. In response to these questions, the Pope reaffirms the discipline as a long-held practice with special importance in the Catholic Church. The encyclical Sacerdotalis caelibatus from 24 June 1967, confirms the traditional Church teaching, that celibacy is an ideal state and continues to be mandatory for Roman Catholic priests. Celibacy symbolizes the reality of the kingdom of God amid modern society. The priestly celibacy is closely linked to the sacramental priesthood. However, during his pontificate Paul VI was considered generous in permitting bishops to grant laicization of priests who wanted to leave the sacerdotal state, a position which was drastically reversed by John Paul II in 1980 and cemented in the 1983 Canon Law that only the pope can in exceptional circumstances grant laicization.
Document 8: Sacerdotalis caelibatus: Sacerdotalis caelibatus (Latin for "Of priestly celibacy") is an encyclical written by Pope Paul VI. It defends the Catholic Church's tradition of clerical celibacy in the West. The encyclical was dated 24 June 1967.
Document 9: Freemasonry: In 1983, the Church issued a new code of canon law. Unlike its predecessor, the 1983 Code of Canon Law did not explicitly name Masonic orders among the secret societies it condemns. It states: "A person who joins an association which plots against the Church is to be punished with a just penalty; one who promotes or takes office in such an association is to be punished with an interdict." This named omission of Masonic orders caused both Catholics and Freemasons to believe that the ban on Catholics becoming Freemasons may have been lifted, especially after the perceived liberalisation of Vatican II. However, the matter was clarified when Cardinal Joseph Ratzinger (later Pope Benedict XVI), as the Prefect of the Congregation for the Doctrine of the Faith, issued a Declaration on Masonic Associations, which states: "... the Church's negative judgment in regard to Masonic association remains unchanged since their principles have always been considered irreconcilable with the doctrine of the Church and therefore membership in them remains forbidden. The faithful who enroll in Masonic associations are in a state of grave sin and may not receive Holy Communion." For its part, Freemasonry has never objected to Catholics joining their fraternity. Those Grand Lodges in amity with UGLE deny the Church's claims. The UGLE now states that "Freemasonry does not seek to replace a Mason's religion or provide a substitute for it."
Document 10: Pope Paul VI: On basic Church teachings, the pope was unwavering. On the tenth anniversary of Humanae vitae, he reconfirmed this teaching. In his style and methodology, he was a disciple of Pius XII, whom he deeply revered. He suffered for the attacks on Pius XII for his alleged silences during the Holocaust. Pope Paul VI was less outstanding than his predecessors: he was not credited with an encyclopedic memory, nor a gift for languages, nor the brilliant writing style of Pius XII, nor did he have the charisma and outpouring love, sense of humor and human warmth of John XXIII. He took on himself the unfinished reform work of these two popes, bringing them diligently with great humility and common sense and without much fanfare to conclusion. In doing so, Paul VI saw himself following in the footsteps of the Apostle Paul, torn to several directions as Saint Paul, who said, "I am attracted to two sides at once, because the Cross always divides."
Document 11: Pope Paul VI: Paul VI did renounce many traditional symbols of the papacy and the Catholic Church; some of his changes to the papal dress were reversed by Pope Benedict XVI in the early 21st century. Refusing a Vatican army of colourful military uniforms from centuries, he got rid of them. He became the first pope to visit five continents. Paul VI systematically continued and completed the efforts of his predecessors, to turn the Euro-centric Church into a Church of the world, by integrating the bishops from all continents in its government and in the Synods which he convened. His 6 August 1967 motu proprio Pro Comperto Sane opened the Roman Curia to the bishops of the world. Until then, only Cardinals could be leading members of the Curia.
Document 12: Pope Paul VI: Pius XII delivered an address about Montini's appointment from his sick-bed over radio to those assembled in St. Peter's Basilica on 12 December 1954. Both Montini and the pope had tears in their eyes when Montini parted for his dioceses with 1,000 churches, 2,500 priests and 3,500,000 souls. On 5 January 1955, Montini formally took possession of his Cathedral of Milan. Montini, after a period of preparation, liked his new tasks as archbishop, connecting to all groups of faithful in Milan. He enjoyed meetings with intellectuals, artists and writers.
Document 13: Pope Paul VI: During his period in Milan, Montini was known as a progressive member of the Catholic hierarchy. Montini went new ways in pastoral care, which he reformed. He used his authority to ensure that the liturgical reforms of Pius XII were carried out at the local level and employed innovative methods to reach the people of Milan: Huge posters announced that 1,000 voices would speak to them from 10 to 24 November 1957. More than 500 priests and many bishops, cardinals and lay persons delivered 7,000 sermons in the period not only in churches but in factories, meeting halls, houses, courtyards, schools, offices, military barracks, hospitals, hotels and other places, where people meet. His goal was the re-introduction of faith to a city without much religion. "If only we can say Our Father and know what this means, then we would understand the Christian faith."
Document 14: Pope Paul VI: Paul VI revolutionized papal elections by ordering that only cardinals below the age of eighty might participate in future conclaves. In Ecclesiae Sanctae, his motu proprio of 6 August 1966, he further invited all bishops to offer their retirement to the pontiff no later than the completion of their 75th year of age. This requirement was extended to all Cardinals of the Catholic Church on 21 November 1970. With these two stipulations, the Pope filled several positions with younger bishops and cardinals, and further internationalized the Roman Curia in light of several resignations due to age.
Document 15: Pope Paul VI: Paul VI opened the third period on 14 September 1964, telling the Council Fathers that he viewed the text about the Church as the most important document to come out from the Council. As the Council discussed the role of bishops in the papacy, Paul VI issued an explanatory note confirming the primacy of the papacy, a step which was viewed by some as meddling in the affairs of the Council American bishops pushed for a speedy resolution on religious freedom, but Paul VI insisted this to be approved together with related texts such as ecumenism. The Pope concluded the session on 21 November 1964, with the formal pronouncement of Mary as Mother of the Church.
ground_truth: 1983
sub_queries: What did Paul want to reform as a newly elected pope? Answer: Canon Law
In what year was Canon Law issued affirming celibacy in the priesthood? Answer: 1983