I'm calling BPX1PCT as an alternative to BPXMTEXT as described in another
thread.

I'm calling with a command of 0xC000000B per
https://www.ibm.com/support/knowledgecenter/en/SSLTBW_2.3.0/com.ibm.zos.v2r3
.bpxb100/pct.htm usage note 9.

I'm calling with a text type of 0 and an error code type of 0.

I'm getting good text back with a good length. The text corresponds to the
errno2 that I am passing.

But I am getting a return code of 256 (decimal) and a reason code of
0x166830DE.

Errno 256 is not documented and BPXMTEXT says "BPXMTEXT does not support
reason code qualifier 1668".

Anyone have any ideas?

Here's the relevant code:

extern "OS" void BPX1PCT(const char File_System_type[8], const int Command,
const int Argument_length, void *Argument, int *Return_value, int
*Return_code, int *Reason_code);

BPX1PCT("KERNEL", pfsctl_command, pfsctl_buff_len, &pfsctl_buff,
&pfsctl_retvalue, &pfsctl_retcode, &pfsctl_reascode);

printf("BPX1PCT() Value %x, Retcode %d, Reason %X\n", pfsctl_retvalue,
pfsctl_retcode, pfsctl_reascode);

I have only included the "retcode-related" parts of my code because
everything else seems to be working. Again, I am getting good text back.
It's only the return and reason codes that are a mystery.

Charles

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to