TerminateLines property: File class
Description
Use the TerminateLines property to indicate whether all output data lines are to be terminated at the end of the defined data length. This property is a file layout property associated with fixed file layouts only.
This property takes a Boolean value: True to force output data lines to be terminated at the end of the defined data length; False to keep all lines all at the maximum of their own length or that of their children. The default value is false.
This property is read/write.
Example
If &FILE_CREATED = "N" Then
&FILE_CREATED = "Y";
&FILENAME = &MSGNAME | "_" | &PROCESS_INSTANCE | "_*.out";
&FILE = GetFile(&FILENAME, "N", "UTF8");
&FILE.SetFileLayout(@("FILELAYOUT." | &MSGNAME));
&FILE.TerminateLines = True;
&RS_LVL0 = &FILE.CreateRowset();
&REC_MSG_LVL0 = &RS_LVL0(&ROWCNT0).GetRecord(1);
If EO_BATLIB_AET.CREATE_FILE_FLG = "C" Then
&STRING = "998 " | &MSGNAME;
&FILE.WriteLine(&STRING);
End-If;
End-If;