There is one advantage to COBOL's rather archaic arithmetic statements: DIVIDE dividend BY divisor GIVING quotient REMAINDER remain DIVIDE divisor INTO dividend GIVING quotient REMAINDER remain
________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Robert Prins <robert.ah.pr...@gmail.com> Sent: Wednesday, September 2, 2020 1:17 PM To: IBM-MAIN@LISTSERV.UA.EDU <IBM-MAIN@LISTSERV.UA.EDU> Subject: PL/I RFE to vote for (or not) quotient = QUOTREM(dividend, divisor, remainder), With quotient and remainder generated in one go by the execution of a DP instruction (and probably/possibly/maybe/likely also by the various other divide instructions) https://www.ibm.com/developerworks/rfe/execute?use_case=viewRfe&CR_ID=145001 -- Robert AH Prins robert.ah.prins(a)gmail.com The hitchhiking grandfather - https://prino.neocities.org/indez.html Some REXX code for use on z/OS - https://prino.neocities.org/zOS/zOS-Tools.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN