CALL "CBL_GET_CURRENT_DIR" USING BY VALUE flags BY VALUE nameLength directoryName GIVING returnCode |
flags | PIC X(4) COMP-5 | Reserved. Must be set to 0. |
nameLength | PIC X(4) COMP-5 | Specifies the size in bytes of the directoryName parameter. |
directoryName | PIC X(n) | Receives the directory name. |
0 | Operation successful. |
>0 | Operation failed. |
WORKING-STORAGE SECTION. 01 dir pic x(256). 77 flags pic x(4) comp-5. 77 dir-sz pic x(4) comp-5. PROCEDURE DIVISION. MAIN. set dir-sz to size of dir. move 0 to flags. call "cbl_get_current_dir" using by value flags, by value dir-sz dir. display dir. |