I need to exchange the Data File Name of a Source File Object:
I tried to do that by python code:
import zospy
zos = zospy.ZOS()
oss = zos.connect()
oss.load(‘zmx_file.zmx’)
led = oss.NCE.GetObjectAt(1)
TypeSet_LED = led.GetObjectTypeSettings(zp.constants.Editors.NCE.ObjectType.SourceFile)
TypeSet_LED.FileName1 = 'filename.dat'
I wrote that code according to section #! ie21s03_py] in example 21 of the ZOS-API Python examples
Apparently, the code does not work.
Did anyone ever manage to exchange source files via python?
Can you provide a code snippet that works?
Thanks in advance