OPENSAVE-BROWSE-FOLDER
The OPENSAVE-BROWSE-FOLDER function opens an "Open" dialog box, showing directories only.
Syntax:
 CALL "C$OPENSAVEBOX" USING OPENSAVE-BROWSE-FOLDER 
                            OPENSAVE-DATA
                     GIVING returnCode
Parameters:
OPENSAVE-BROWSE-FOLDER
Constant
 
OPENSAVE-DATA
Group Item
It is a structure that contains information used to initialize the dialog box. When the OPENSAVE-BROWSE-FOLDER function returns successfully, this structure receives information about the user's selection. This group item, defined in isopensave.def, has the following structure:
 
01  opensave-data.
    03 opnsav-filename       pic x(256).
    03 opnsav-flags          pic 9(4comp-x value 0.
    03 opnsav-default-ext    pic x(12).
    03 opnsav-title          pic x(80).
    03 opnsav-filters        pic x(512).
    03 opnsav-default-filter pic 9(4comp-x value 0.
    03 opnsav-default-dir    pic x(128).
    03 opnsav-basename       pic x(128).
 
opnsav-filename
Specifies the default filename. When the OPENSAVE-BROWSE-FOLDER function returns successfully, it receives the drive designator and path of the selected directory.
 
opnsav-flags
The following constants, defined in isopensave.def, can be combined to set this field:
-opensave-browse-dontgobelowdomain: network folders below the domain level in the dialog box are not included.
-opensave-browse-browseincludefiles: the browse dialog box displays files as well as folders.
 
opnsav-default-ext
Not used.
 
opnsav-title
String to be placed in the title bar of the dialog box. If this member is spaces, the system uses the default title.
 
opnsav-filters
Not used.
 
opnsav-default-filter
Not used.
 
opnsav-default-dir
Not used.
 
opnsav-basename
Not used.
Return code:
returnCode can be any signed numeric data item and provides additional information:
1
Operation successful. Directory has been chosen.
-1
The user has pressed the "Cancel" button. opensaveData contents are not updated.