skip to main content

Library Routines : CBL_CHANGE_DIR

CBL_CHANGE_DIR
The CBL_CHANGE_DIR library routine changes the current directory for the COBOL program.
This routine changes the working directory only for files opened by the COBOL program.
Syntax:
 CALL "CBL_CHANGE_DIR" USING pathName
Parameters:
Return code:
returnCode can be any numeric data item and provides additional information:
Examples:
Example - Change current directory to a temporary reports one
move "c:\tmp\reports" to new-dir
call "cbl_change_dir" using new-dir
if return-code = 0
   display message "Current Directory changed to " new-dir
   display message "Error : " return-code

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left