IBM Support

PH59810: [PYTHON] LIST_VSAM_DATASETS() THROWS EXCEPTION IF DATASET NOT FOUND

A fix is available

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • If the function datasets.list_vsam_datasets() does not return a
    match, it throws an exception. It should instead return an empty
    list.
    >>> datasets.list_vsam_datasets("")
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File
    "/home/angio/.local/lib/python3.11/site-packages/zoautil_py/data
    sets.py", line 2093, in list_vsam_datasets
        datasets.append(Dataset(name=dataset_row[0]))
                                     ~~~~~~~~~~~^^^
    IndexError: list index out of range
    

Local fix

Problem summary

  • ****************************************************************
    * USERS AFFECTED: Users of IBM Z Open Automation Utilities     *
    *                 (ZOAU) version 1.3.0.x                       *
    ****************************************************************
    * PROBLEM DESCRIPTION: In the ZOAU Python language pack,       *
    *                      the list_vsam_datasets() function       *
    *                      incorrectly throws an exception if no   *
    *                      datasets matching the provided pattern  *
    *                      are found. This PTF changes the         *
    *                      behavior so that an empty list is       *
    *                      returned.                               *
    ****************************************************************
    * RECOMMENDATION: APPLY APAR/PTF. Follow instructions in PTF   *
    *                 HOLDs.                                       *
    ****************************************************************
    This is a maintenance release with a single bug fix. It is a
    full replacement for all prior versions of ZOAU 1.3.x.
    

Problem conclusion

  • -----
    

Temporary fix

Comments

APAR Information

  • APAR number

    PH59810

  • Reported component name

    Z OPEN AUTO UTL

  • Reported component ID

    5724T0753

  • Reported release

    130

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2024-02-14

  • Closed date

    2024-02-27

  • Last modified date

    2024-03-03

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

    UI95834

Modules/Macros

  • BGY310W3 BGY311W3 BGY312W3 BGY39W3  BGYBIN3  BGYCONF3 BGYDOCS3
    BGYINCL3 BGYLIB3  BGYLICS3 BGYPTGZ3 BGYRDME3 BGYSAMP3 BGYSTUB3
    BGYZOAU3
    

Fix information

  • Fixed component name

    Z OPEN AUTO UTL

  • Fixed component ID

    5724T0753

Applicable component levels

  • R130 PSY UI95834

       UP24/03/01 P F402

Fix is available

  • Select the PTF appropriate for your component level. You will be required to sign in. Distribution on physical media is not available in all countries.

[{"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSKFYE","label":"IBM Z Open Automation Utilities"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"130","Line of Business":{"code":"LOB70","label":"Z TPS"}}]

Document Information

Modified date:
04 April 2024