Library Generation tab
This tab applies to all the generation products (COBOL code, proxies, Screen maps, or Database Block descriptions for example) of the Library. You use it to indicate the default values of the generation projects and folders for the instances that are generated from the Library. The project, COBOL folder, and map folder that are indicated in Source localization constitute the default values for all the generation products of the Library. You use the Generation projects table to assign specific generation projects and folders according to the generation products.
- The generation project and folder in the instance Definition
- The generation project and folder in the Generation projects table of the Library Generation tab
- The generation project and folder in the Source localization section of the Library Generation tab
- The default generation project (formatted as LOCATION.LIB)
Source localization
By default, the generated files are stored with the design files in a folder whose default name you can change. However, you can separate them from the design files or even change the generation project and folder. The generation project and folder that are indicated in this section can be overwritten by the projects and folders that are specific to each generation product in the Generation projects table.
In a Library, the default values of the COBOL project, COBOL folder, and Map folder (for Screens only) are the values of the current project.
- Project
- The project selected in the field is the default project for all the generation products of the
Library.
You can select another project in the drop-down list.
If you change the project, the COBOL folder and map folder are automatically set to the default value (rpp). The new project will then apply from the next generation onwards.
- COBOL folder
- All the files that are generated from the Library, except the Screen maps, are stored in the
project indicated in this field, inside the project indicated in the Project
field.
You can change the COBOL folder that is inherited from the Library in each instance.
If the default folder is kept, you can specify a root path for the generated files in the Properties wizard (accessed by clicking Change project properties). This path applies both to the COBOL files and the map files. It is automatically inserted in this field, at the beginning of the folder.
You can select another folder in the drop-down list. You cannot create a folder at this level. The folders must have already been created in the project, from the Resource perspective for example.
If you change the COBOL folder, it will apply from the next generation onwards.
- Map folder
- This folder is used for the Screen generation only. The map file is stored in the folder that is
displayed in this field, inside the project indicated in the Project
field.
You can change the map folder that is inherited from the Library in each instance.
If the default folder is kept, you can specify a root path for the generated files in the Properties wizard (accessed by clicking Change project properties). This path applies both to the COBOL files and the map files. It is automatically inserted in this field, at the beginning of the folder.
You can select another folder in the drop-down list. You cannot create a folder at this level. The folders must have already been created in the project, from the Resource perspective for example.
If the COBOL folder is changed and if the map folder contains the default value, then the map folder takes on the same value as the COBOL folder.
If you change the map folder, the new folder will apply from the next generation onwards.
- Change project properties
- Click to open the Properties wizard, where you can complete the following actions:
- Change the default folder. This folder contains the design files and is the default target of the generated and metadata files.
- Indicate a root path for the generated files, only if the default generation folder is kept.
- Indicate a root path for the metadata files, which are stored by default in the same folder as the other generated files.
Note: See the help on Modifying the generation target in the project properties wizard.
Generation projects
- Click Add to add a line that corresponds to a generation product. By
default, the Program COBOL line is inserted in the table. Open the drop-down list of the
Generation product column and select the appropriate generation product.
Note: Only one line by generation product is authorized.
- Open the drop-down list of the Project column. This list contains the projects that exist in the current location. Select a project in the list. You cannot create a project at this level.
- Open the drop-down list of the Folder column. This list contains the folders that exist in the project selected in the Project column. Select a folder in the list. You cannot create a folder at this level.
The generation projects and folders that are indicated in this table take precedence over the generation project and folder that are indicated in the Source localization section. They constitute the default values in the instances that will be subsequently created in the Library. However, you can change the default values that are inherited from the Library in each instance.
You can remove or reorder selected lines in the table by clicking the buttons that are associated with the table.
- Change project properties
- Click to open the Properties wizard, where you can complete the following actions:
- Change the default folder. This folder contains the design files and is the default target of the generated and metadata files.
- Indicate a root path for the generated files, only if the default generation folder is kept.
- Indicate a root path for the metadata files, which are stored by default in the same folder as the other generated files.
Note: See the help on Modifying the generation target in the project properties wizard.