I need to create a flat file and defined a template to drive the data.
The record structure I created look like this:
The rec2 and rec4 are sub-records and are in the same ‘level’ inside rec1. The rec1 and rec4 are record lists.
The generated flat file look like this:
The issue is that rec1 can have no data sometimes, and when it happens I append rec4 in an empty rec1, but when convert this record into flat file, the flat file shows up with a blank line right before the ‘4datadatadata’ line.
How should I define my template to skip the empty rec1 when it happens?
Thanks in advance,