Installation Considerations | Accessing Mainframe Files |
This chapter describes how you administer workgroup projects. You should read the chapter Workgrouping in your User's Guide for background on how workgrouping projects are used, before you read this chapter.
Application Workgrouping in Mainframe Express enables you to share resources between a group of programmers. All the source files, load modules and other resources for an application are held centrally on a server, and programmers only download the individual files they need to work on. This is covered in more detail in the section Overview in the chapter Workgrouping in your User's Guide.
As a workgroup administrator you have the following responsibilities:
Setting up a workgroup consists of making all the resources needed to run an application available over the network to programmers, and setting up a Mainframe Express project to use those resources for working on the application. You also need to set up CICS, IMS and SQL resources as required.
At the end of the process, you distribute a copy of the project file to each programmer in the workgroup. Depending on how you have decided to structure the workgroup, you might also distribute a copy of the system catalog and the CICS Resource Definition File.
You set up a workgroup in six stages:
Deciding which resources are to be shared and which are to be local to each programmer.
Creating an area on the server for all the sources and a Mainframe Express project.
Sharing access to data files.
Setting paths to configuration files used by Mainframe Express options.
Ensuring the project is complete.
Making the project available to the programmers in the workgroup.
At the end of this process, any programmer in the workgroup can run and debug the application from their PC, using the shared sources and resources set up at the production level of the project.
Detailed step-by-step instructions for individual tasks are in the Mainframe Express online help, rather than in this chapter. Click Help Topics on the Mainframe Express Help menu, then on the Contents tab click Development Environment, Administering Workgroups, How to.
We've also provided some extra information to make setting up a workgroup easier and to help improve performance, under Tips and Tricks.
Before you start work, you need to consider the following issues:
You would normally download them to the server, but you also have the option of leaving some or all on the mainframe and accessing them using the Mainframe Express SourceConnect option. In the case of a very large application, you might just download a subset of the sources for working on and leave the rest of them on the mainframe.
For more information on configuring SourceConnect, click Help Topics on the Help menu, then on the Contents tab click Development Environment, Accessing the Mainframe, How to Configure Mainframe Access.
Programmers in the workgroup should not have write access to the production level sources on the server or the mainframe; promotion should be managed through use of the Staging library.
A Staging library is where programmers in the workgroup copy sources that they want to move to another level. Mainframe Express does not impose any rules on how you should use this facility. You need to decide how many folders you want in a Staging library, and how they should be used. For example, you could allocate one folder for each programmer in the workgroup; alternatively, you could allocate different folders for promoting different types of file.
Data can be accessed either on the mainframe, on a network server, or locally on the programmers' PCs. You need to decide which is most appropriate for the volume and type of data you have. You can use any combination of platforms on a project.
By default, all load modules are generated into a single folder under the category All Load Modules. You can add extra folders to the Load Library to categorize load modules by type (for example, IMS, COBOL and BMS load modules).
You can exploit the concatenated search used by Mainframe Express to search a number of locations for copybooks and other dependent files. Mainframe Express automatically adds a Dependency folder for files required by the CICS, SQL and Assembler Options to the Dependency library - you might need to change this folder to a central location for sharing by members of the workgroup.
You should also consider whether there are large numbers of dependent files that it would be simpler to leave on the mainframe. You can search mainframe locations as Dependency folders using SourceConnect .
You must make sure that you set up the project correctly before you distribute it to the programmers in the workgroup. As programmers copy files from the production level to work on, they make changes to their own individual copies of the project file. There is no automatic way of synchronizing their project files with any subsequent changes needed to build the application correctly. We strongly advise you not to skip the stage of building and testing the application before distributing project files (described in the section Building and Testing the Project).
Workgroups are set up using Mainframe Express projects. For detailed instructions on working with Mainframe Express projects click Help Topics on the Mainframe Express Help menu, then on the Contents tab click Development Environment, Working with Projects.
To set up a project for workgrouping:
You also have the option of leaving some files on the mainframe. You can set any workgroup folder to point to a mainframe PDS using the SourceConnect utility. If you use this facility, all programmers in the workgroup need to set up SourceConnect on their PCs. See the chapter Accessing Mainframe Files for more details.
The second screen of the wizard offers you the choice of:
When creating a new project from an existing project or a template project, you can opt to have all the project files copied, complete with their folder structure, to your new project location. This has no effect if a project template has no associated project files.
If your project uses CICS, you can use the CICS Resources page of the New Project wizard to copy the Resource Definition File to a shared location on the network (see the section Considerations for CICS Support).
You need to include folders for any copybooks which are part of your organization's standards. For example, you might have a set of copybooks to define employee records, which are shared between several different applications. You can leave these copybooks on the mainframe and set up the folders to use SourceConnect to reach them.
By default, all loadable modules are generated in a single folder called All load modules. You can add folders to the Load library for specific types of module, differentiating for example between COBOL, IMS and Assembler load modules.
You should try building the project at this stage to see whether it is complete or not. If you get any build errors because of missing files, you need to do one of the following:
The Staging Library is where programmers copy files they want promoted to the Production level. Give programmers in the workgroup read/write access to this area.
Then add one or more folders to the Staging Library, as subfolders of the share you have set up in the previous step. You need to set an absolute path, qualified with the network share or drive letter. Organize the folders in the Staging Library in the way that best suits the working practices for the workgroup. For example, you could classify folders for storage of different types of file, or alternatively you could provide a separate folder for each programmer.
The project creation wizard allows you to create an entirely new project. You can also make a copy of an existing project with the option to copy all the project files to the new project folder. This facility has been adapted to provide a project template capability so that administrators can provide a range of 'ready-made' projects.
Projects consist of a project definition file <project name>.mvp plus subfolders containing all the project files. The only difference between a project template and any other project is its location. Project template .mvp files are located in a special templates folder which is created when Mainframe Express is installed. This folder may also contain subfolders for project files. This gives you a range of options. Your templates can consist of just the project definition .mvp files, or you can include some of the associated project files, or you can include complete projects.
By default the template folder is x:\mfuser\templates. You may change this by clicking Project on the Options menu, then specifying a new default folder for template project files.
Project templates are used by the project creation wizard which reads the contents of the project templates folder and lists the file names without their .mvp extensions on page 2 of the wizard. You may find it useful to use meaningful project file names, if possible.
You can create and modify templates in exactly the way you create and edit any other project. The only difference is that you must specify the project templates folder as the project location. You may find it useful to restrict write access to the project templates folder, otherwise any user can edit your templates.
The data catalog determines the location of all the data files for a project. There are two possibilities for setting up the data catalog for a workgroup:
These options are discussed separately in the subsections below. For background information on how you use the data catalog, see the chapter Files and Data Sets in the User's Guide. For detailed step-by-step instructions on using the data catalog, see the Mainframe Express online help. Click Help Topics on the Help menu, then on the Contents tab click Development Environment, Emulating the Mainframe Environment, Using Data Set Catalogs.
The instructions below set up a shared catalog based on the following assumption:
If you decide to use a shared catalog, you must be aware of the dangers of file conflicts between different members of the workgroups.
To set up the catalog:
This is not necessarily the same location as the data sets referenced by the catalog.
This is for data sets which are created by the application at run-time or when allocating a data set manually. Mainframe Express automatically allocates files in the folder specified by the Allocation folder field on the Catalog tab of the Project settings dialog box.
Set the Allocation folder field to an absolute path which points to a network share to which workgroup members have write access.
Warning: If you use a path relative to the project file (one which starts .\) or a path local to your PC (for example c:\) for the Allocation folder in a shared catalog, the catalog can lose its integrity. This is because either the path, or a file allocated to it, does not necessarily exist on other PCs in the workgroup.
Local catalogs are maintained by individual programmers in the workgroup. They can reference local data sets, or data sets shared over the network or from the mainframe via DataConnect.
The advantages of local catalogs include:
The disadvantages of local catalogs include:
To set up the catalog:
.\
This is for data sets which are created by the application at run-time or when allocating a data set manually. Mainframe Express automatically allocates files in the folder specified by the Allocation folder field on the Catalog tab of the Project settings dialog box.
Set the Allocation folder field to a relative path. Programmers in the workgroup can change this path to one local to their PC if necessary.
If your application uses any of the following resources, you need to make configuration files and/or databases available to all the members of the workgroup:
There are two resources issues to consider.
You can either share the resource definition file (RDF) centrally between all members of the workgroup, or provide each workgroup member with their own separate copy. In either case you should set up all the resource definitions required to run the application.
See the chapter Configuring CICS Regions in the CICS Option Technical Guide for detailed advice on shared and stand-alone use of resource definition files.
For step-by-step instructions on how to set up CICS resources, see the online help: click Help Topics on the Mainframe Express Help menu, then on the Contents tab click CICS Option, Defining Resources.
You may want to download resources from a CICS System Definition (CSD) file on a mainframe. See the chapter CICS Resource Definitions for more information.
The CICS System searches the workgroup Data library folders for the data files referenced in the FCT, unless overridden by an explicit path. This enables you to have concatenated search paths for your CICS data files.
If you do use the Overrides tab on the FCT properties dialog box to set an explicit path for a file, you should ensure that the path is accessible to all users in the workgroup.
There are two separate types of resource to consider for IMS:
These resources are found by searching through the concatenated list of folders for IMS Load libraries and All Load Modules. You can set up your shared IMS resources under the Load library folder at the production level, and programmers in the workgroup can override these by creating local IMS resources.
There are four ways of accessing IMS databases:
The location of these databases (apart from remote databases) is determined by the information set on the IMS tab of the Project settings dialog box. For further information on types of access, and setting up, see the chapter The IMS Option Interface in your User's Guide.
Relational databases for the SQL option can be accessed by programmers in the workgroup in any of the following ways:
Refer to the chapter SQL Option for DB2 in your User's Guidefor more information.
At this stage the project should now be complete, together with all the resources needed to run it. You should test that you can build and run the application correctly, before you distribute it to the members of the workgroup. This is because once you have distributed the project, there is no automatic way of synchronizing subsequent changes needed to build the production level of the application. Either you redistribute an updated copy of the project, in which case programmers lose any changes made to their individual projects, or each programmer must apply the updates to their individual projects.
To build and test the project:
This compiles all the sources in the project to the Production level Load Libraries.
This opens the Start debugging dialog box. For more information on how to debug, click Help Topics on the Mainframe Express Help menu, then on the Contents tab click Development Environment, Debugging COBOL Programs.
When the project has been tested and is complete, you can distribute it to the programmers in the workgroup. To distribute the project:
When you do this, you are prompted to convert all the relative paths for the production level libraries to absolute paths. This ensures that the Production libraries point to areas on the server.
Which resource files you need to copy locally depends on which decisions you have made while setting up the project.
Once a programmer in the workgroup has copied these files, they should be able to run and debug the application using the sources stored at the production level of the project.
The Staging Library is used to promote changes made by programmers back into the Production library. Periodically, you should copy the files in the Staging Library back into the Production Source Library, and rebuild the project to update the Production Load Library. How often you do this depends on the standards and criteria operating at your site.
Changes at the Production level are not seen by workgroup members until they update the dependencies in their own local projects. This is because the local project maintains a single list of the dependencies for any source file. No matter how many different versions there are in different levels\folders, there's only one set of dependencies kept and that's for the "active" version. Therefore, if you use Show Dependencies after changing something external to the project (such as the sources at the production level), or switching levels or folders on or off, then the information it displays may be out-of-date. If you run update dependencies or perform a build, the information becomes valid again.
These tips can make it easier to set up a project for workgrouping. You don't have to follow this advice if it conflicts with the standards or systems operating in your organization.
We recommend:
This provides better performance than using UNC names.
This enables you to use the same mappings and paths for projects and resources as the workgroup members.
You can add folders to the Source, Dependency and Load libraries which contain modules which you have not explicitly added to the project. These folders are on the concatenated search path. This enables you to have Dependency and Load libraries with routines common to many projects, without the overhead of adding all the files contained in these libraries to every single project.
Copyright © 1999 MERANT International Limited. All rights reserved.
This document and the proprietary marks and names
used herein are protected by international law.
Installation Considerations | Accessing Mainframe Files |