Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def crtdspf(srcfile, tgtlib, tgtfile):
- tmp_id = random.randint(100000,999999)
- crtlib("BLD%d" % (tmp_id))
- subprocess.call(["system", "crtsrcpf", "FILE(BLD%d/BLD%d)" % (tmp_id, tmp_id), "RCDLEN(132)" ])
- subprocess.call(["system", "cpyfrmstmf", "FROMSTMF('%s')" % (sanitize_path(srcfile)), "TOMBR('/QSYS.LIB/BLD%d.LIB/BLD%d.FILE/BUILD.MBR')" % (tmp_id, tmp_id), "MBROPT(*ADD)"])
- subprocess.call(["system", "crtdspf", "FILE(%s/%s)" % (tgtlib, tgtfile), "SRCFILE(BLD%d/BLD%d)" % (tmp_id, tmp_id), "SRCMBR(BUILD)"])
- subprocess.call(["system", "dsplib", "BLD%d" % (tmp_id)])
- dltlib("BLD%d" % (tmp_id))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement