I have been requested to create a fixed field text file from EXCEL. For example, if there are three columns of data, the first column is 20 characters, the second column is 35 characters and the last column is 10 characters in length. I need to generate a text file where the first record is 20 characters regardless of the actual length of the data in this field (i.e., by default the data must NOT exceed the 20 character length). The data is to be left justified [so if the first data field is actually 9 characters in length it will be followed by 11 characters of spacing in the text file]. This same logic applies to the data in next two columns. The next EXCEL row then creates a “new” line in the text file and the three fields in the “new” line follow the same logic.
I have spent a couple of hours experimenting with the EXCEL file save options for txt and csv files—but can’t generate a “fix field length text file with the data left justified in the field. I am wondering if I need to use one of the csv options and then use some sort of high powered text file editor to create the required export file with the left justified, fixed field length data elements.
Guidance and suggestions needed!! Thank you.