in copybook.py [0:0]
def toDict(lines):
id = 0
stt = ""
for line in lines:
if len(line) > 1:
if line[6] != "*": stt += line.replace('\t', ' ')[6:72]
# READS FIELD BY FIELD / SPLITS ATTRIBUTES #
for variable in stt.split("."):
attribute=variable.split()
if len(attribute) > 0:
if attribute[0] != '88':
id += 1
add2dict(int(attribute[0]), False if 'PIC'in attribute else True, attribute[1], attribute, id)
return output