C/C++

C/C++

C/C++

Your one-stop destination to learn and collaborate about the latest innovations in IBM C/C++ for z/OS compilers to develop high-performing C/C++ applications and system programs on z/OS while maximizing hardware use and improving application performance.

 View Only
  • 1.  64 bit __console2()...

    Posted Sun July 24, 2022 12:54 PM
    Im running a C program - in 64 bit ASCII mode as part of a Python external function.

    I have
    rc = __console2(&cmsg,NULL,&cmsg_cmd);// cmsg_cmd not returned on output
    if(rc == -1) {
    printf("__console2() failed\n");
    printf("Errno %d \n",errno);
    printf("%s\n",strerror(errno));
    rc = errno;
    }

    which works, but it generates

    __console2() failed
    Errno 118
    EDC5118I Incorrect address.


    Is there an option for this to work with 64 bit programs?  It is strange that it works - but gives the error message

    ------------------------------
    Colin Paice
    ------------------------------