Problem:
Using the Micro Focus FTP FDS to run FTP as part of JCL stream to GET the files into the dataset, you will see the files that are downloaded are allocated like a mainframe dataset. When the MFFTP downloads a file, it put a .DAT extension on all the files. This happens because the Micro focus FTP is expecting to download data when issuing GET command and automatically catalog it so the data could be used in batch. So the .DAT extension created is normal for all data files. There is no switch turn off the .DAT at a global level.
Resolution:
- An IDCAMS to UNCATALOG the file so the catalog is clean.
- A small COBOL program that exploits CBL_RENAME_FILE (see NX Help) to rename it to filename that’s desired.
#MFDS
#EnterpriseDeveloper

