Skip to content

zoautil_py.datasets.read of a z/OS dataset #57

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

You must be logged in to vote

I feel like a stalker responding to all of your inquiries. To iterate over a dataset with datasets.read, I do this:

from zoautil_py import datasets

N1 = "IBMUSER.JCLLIB(IEFBR14)"
GG = datasets.read(N1)
GG = GG.split('\n')
for line in GG:
  print(line)

I know it's not a fancy iterable, but maybe our friends in the ZOAU dev team could make this return an iterable?

Replies: 2 comments 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