Skip to content

datasets.zip error - BGYSC3908E Invalid dataset name #59

Closed Answered by EnsonoStevenPerva
gngrossi asked this question in Q&A
Discussion options

You must be logged in to vote

I believe your call to Datasets.zip(...) has the arguments swapped. I was able to create a zipped up PDSE with this code:

Python 3.10.0 (heads/pyz_dev-3.10:052d330082, Nov 18 2021, 12:17:59) [Clang 4.0.1 (tags/RELEASE_401/final)] on zos
Type "help", "copyright", "credits" or "license" for more information.
>>> from zoautil_py import datasets
>>> resp = datasets.zip('/u/ibmuser/test.dzp','IBMUSER.JCLLIB')
>>> print(resp)
0
>>>

As for datasets.unzip(...) you can only change the HLQ, so the method is requesting an override for the HLQ when you call it. One of the best ways to see what the Python API is teasing at is to take a look at the man page for the command the API is calling under the…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gngrossi
Comment options

Answer selected by gngrossi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants