Hi all,
I need to create a flat file and defined a template to drive the data.
The record structure I created look like this:
rec0
rec1
rec2
rec4
rec9
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:
0datadatadata
1datadatadata
2datadatadata
4datadatadata
4datadatadata
.
.
4datadatadata
9datadatadata
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,
Maldonado
#webMethods#Integration-Server-and-ESB#edi