Hi All,
I generated a fixed position text file.
I have a field value of size 10 but the field size is fixed as 15, filling the remaining 5 spaces of the field with zeros now its empty spaces.
How to achieve it.
f.outFieldDelimiter('');
f.outRecordDelimiter('\r\n');
f.write(strLfix("testing",15));
f.write();

How to replace the space with zeros?
Thank you
You can use string functions to check the length of the value, and add leading zeros if needed. For example, strLen and strIns could be used to achieve the desired outcome.
Sohaib Cheema
886
User Group Leader
André Arnaud de Cal...
870
Super User 2025 Season 2
CA Neeraj Kumar
697