(cross-posting to IBM-MAIN and MVS-OE) On 2018-09-08, at 05:07:04, William Schoen wrote:
> The API for this is the pfsctl callable service, see usage note 9. > https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxb100/pct.htm > Now that's obscure. On 2018-09-07, at 19:06:51, Charles Mills wrote: > > If I wanted to call BPXMTEXT from within my program and capture the text > output, what would I to do? I'm sure I could solve this with enough > experimentation but the gray hairs have made me impatient. > > Something like system("bpxmtext %x") where I substitute the errno2() value > into the message. But (1) I read a warning about having to allocate stdin > and so forth, and (2) I would like to capture the output. I suspect those > two issues have the same solution, and perhaps someone could point me in the > right direction? > I suspect Charles searched the reasonable places with no success. Is an RCF in order? In: https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxa500/bpxmtext.htm bpxmtext — Display reason code text ... It can be run from the z/OS UNIX shell and the TSO environment. You can also enter that command through System REXX as an MVS™ system command. Add: ... The API for this is the pfsctl callable service, see usage note 9. <https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxb100/pct.htm> and add "BPXMTEXT" to that section so a Google search is likely to find it. Which? Both? Other (specify)? -- gil ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
