Fans of IBM Z

Fans of IBM Z Hub

Fans of IBM Z Hub

Join us and share the love of IBM Z with our global community!

 View Only
  • 1.  Issue on ZFILE.BPXBDYN command to allocate a type file

    Posted Sun February 09, 2025 08:25 AM

    I got 0x218 error when I tried to use java to dynamic allocate this type file.  I have no problem use JCL to allocate. so the UNIT and DSN are correct. 

    tape file cmd:alloc fi(TESTINPT) da('xxx.xxxx.xxxx.BKUP(0)') unit(tapxx) shr msg(2)
    BPXWDYN failed; S99ERROR/S99INFO = 0x218/0x0 RC=35127296 (0x2180000)

    Could some experts help me? 



    ------------------------------
    Tommy Zhu
    ------------------------------


  • 2.  RE: Issue on ZFILE.BPXBDYN command to allocate a type file

    Posted Mon February 10, 2025 02:50 AM

    Hi Tommy,

    Do you have checked that? https://www.ibm.com/support/pages/apar/PI73764



    ------------------------------
    ===
    Ruben Crespo Lorente
    Mainframe Specialist at BBVA Technology
    ===
    ------------------------------



  • 3.  RE: Issue on ZFILE.BPXBDYN command to allocate a type file

    Posted Tue February 11, 2025 02:58 AM

    Your error is the following and this might help you to determine where it is (I didn't know you could use BPXWDYN to write to tape) and if it can, where are you specifying the volume, do you have permission (ESM) to mount and write to tapes?

    Meaning: Specified volume or an acceptable volume is not mounted, and user does not have volume mounting authorization through the DYNALLOC request. (dsname allocation).

    Application programmer action: Change volume specification, or have the required volume mounted, or change the allocation request to allow volume mounting. Resubmit the request.

    Some possible reasons for this error are:
    • The dynamic allocation tried to use a VIO-eligible unit, but the data set name was not a temporary dsname (DSN=&&dsname).
    • The dynamic allocation tried to put a data set with a non-temporary dsname (DSN=dsname) onto a real DASD volume but
      • No volume serial number was supplied, and
      • No volumes on the system were mounted with a USE attribute of STORAGE.



    ------------------------------
    Sebastian Welton
    ------------------------------



  • 4.  RE: Issue on ZFILE.BPXBDYN command to allocate a type file

    Posted Tue February 11, 2025 11:23 AM

    I would like to read the data from tape only. Not write to tape.  But when read the record file, I tried to use BPXWDYN to allocate the dataset first.  then read it.  I know I don't have permission (ESM) to mount.  JCL works because JCL has top secret permission.  Maybe I can use ZFile to open the tapefile read the tape file without BPXWDYN. I would dig it in. thanks 



    ------------------------------
    Tommy Zhu
    ------------------------------



  • 5.  RE: Issue on ZFILE.BPXBDYN command to allocate a type file

    Posted Mon February 10, 2025 08:46 AM
    Hi Tommy.
    See this URL,
    Do you see the "0218"part, and does it not give you a clue?
     
    The dynamic allocation tried to put a data set with a non-temporary dsname (DSN=dsname) onto a real DASD volume but ---



    ------------------------------
    --------------------------------------
    Harunobu Yoshida (HAL)
    --------------------------------------

    ------------------------------