I need a code on how to check all field of a record if it contains a certain string and write a header attribute if it has that character. Please see code below:
for record in records:
if record.value == "":
record.attributes["DATA"] = "BAD"
sdc.output.write(record)
else:
record.attributes["DATA"] = "GOOD"
sdc.output.write(record)
If anyone know another way to do this that would be great!!! record.values['/*'] doesnt work for me to get all the column.
For anyone facing the same problem, this might help!