Is it possible to access VSAM datasets of mainframe using Python 3.8 in ZOS? I tried accessing vsam simple file in python 2.7 just like ps files. That seemed to be working. When i tried same in 3.8. It is not able to even read simple PS file data.
Code:
import codecs
f = open("//'VSAM file name'",'r')
f1=codecs.getreader('cp1047_oe')(f)
for line in f1:
print line,
print (f1)
print ("Read record is :", f)
f.close()
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…