Problem:
Release 4.0:
MFSORT - A file with ORG LS F 420 is read in and data is sorted with output in more than one file but the data in all the output files is truncated by the last 20 Bytes (all spaces) for each line.
I don't want to truncate any trailing spaces.
Resolution:
1) To prevent trailing spaces truncated at the end of each line you should add a configuration file extfh.cfg related to the Micro Focus File Handler.
This extfh.cfg file is a text file edited by e.g. Windows Notepad ending with Enter (x'0d0a') for each line. In that case you write down this as follows:
[XFH-DEFAULT]
STRIPSPACE=OFF
This configuration option STRIPSPACE=OFF (default: ON) ensures that for all line-sequential files you have addressed in MFSORT trailing spaces are present for each line.
If you want to address a file (MYFILE.DAT) only you have to point this .cfg file as follows:
[XFH-DEFAULT]
[MYFILE.DAT]
STRIPSPACE=OFF
2) Changing to the Net Express command prompt and setting EXTFH environment variable to extfh.cfg then, i.e.
>set EXTFH=drive:\\path\\extfh.cfg
3)Remaining in the Net Express command prompt and running the MFSORT command will now get back the results as expected.
#AcuCobol
#COBOL
#RMCOBOL
#ServerExpress
#netexpress