Problem:
Method to create line sequential files without stripping off spaces at the end of each line
Resolution:
Releases: 4.0 - 5.0 -
In order to keep trailing spaces in each record of a line sequential file, use the STRIPSPACE=OFF file handler configuration option to leave the trailing spaces in the record. Please see the Net Express bookshelf programmer's guide "File Handling", chapter 6: File Handler Configuration.
How To:
create text file using notepad - call it extfh.cfg
put this in it:
[XFH-DEFAULT]
[TEST.DAT]
STRIPSPACE=OFF
WHEN TYPING THIS FILE - MAKE SURE YOU HIT ENTER AFTER EACH LINE TO PLACE
AN END OF LINE MARKER **ESPECIALLY THE LAST LINE
[TEST.DAT] **THIS IS OPTIONAL IF YOU WANT TO USE THIS FOR ONE PARTICULAR FILE
LEAVE OFF IF YOU WANT FOR ALL LINE SEQUENTIAL FILES
and then set an environment variable to point to extfh.cfg
extfh=drive:\\directoryname\\extfh.cfg
