From within my native Visual COBOL code, I want to specify the name of a folder (e.g., "c:\surveys\finance\2018") and then populate a working storage table with as many as 500 names of *.xlsx files in that folder. All the filenames will be 13 characters in length: nnnnnnnn.xlsx
05 SURVEY-FILE PIC X(13) OCCURS 500.
I've been studying available documentation on CBL_DIR_SCAN_START, CBL_DIR_SCAN_READ, and CBL_DIR_SCAN_END -- but it's all Greek to me. Are those even the routines that I will need? And are there any examples out there that actually show getting a list of filenames in a given folder?