The functions of openFT (BS2000) can be used via the following COBOL macros:
COBOL macro | Function | Command |
CALL "NCANCEL" | cancel file transfer request | CANCEL-FILE-TRANSFER |
CALL "NCOPY" | transfer file | TRANSFER-FILE |
CALL "NDEL" | delete remote file | DELETE-REMOTE-FILE |
CALL "NLMOD" | modify local FT file attributes | MODIFY-FILE-FT-ATTRIBUTES |
CALL "NLSHOW" | display local FT file attributes | SHOW-FILE-FT-ATTRIBUTES |
CALL "NMOD" | modify remote file attributes | MODIFY-REMOTE-FILE-ATTRIBUTES |
CALL "NSHOW" | display remote file attributes | SHOW-REMOTE-FILE-ATTRIBUTES |
CALL "NSTAT" | query file transfer status | SHOW-FILE-TRANSFER |
For programs containing calls to openFT (BS2000), the module YNDCOBOL must be either explicitly connected or connected via the AUTOLINK function of the linkage editor. The module YNDCOBOL is in the library $SYSFJAM.SYSRTC.FT.
At the execution time of the program, the module YNDCOBOL is loaded from the library $SYSFJAM.SYSRTC.FT.
The COPY elements are in the library SYSLIB.OPENFT.121 under the user ID set by the BS2000 system administrator.