CALL "CBL_READ_DIR" USING pathName pathNameLength GIVING returnCode |
pathName | PIC X(n) | Receives the directory path name |
pathNameLength | PIC X(2) COMP-X | Specifies the length in bytes of the pathName parameter |
0 | Operation successful. |
1 | Operation failed. |
WORKING-STORAGE SECTION. 01 dir pic x(256). 77 dir-sz pic x(2) comp-x. PROCEDURE DIVISION. MAIN. set dir-sz to size of dir. call "cbl_read_dir" using dir, dir-sz. display dir. |