PreviousInstallation Considerations Accessing Mainframe FilesNext"

Chapter 2: Workgrouping

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.

2.1 Overview

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:

2.2 Setting up a Workgroup

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:

  1. Planning

    Deciding which resources are to be shared and which are to be local to each programmer.

  2. Setting up a project

    Creating an area on the server for all the sources and a Mainframe Express project.

  3. Setting up the data set catalog

    Sharing access to data files.

  4. Setting up other shared resources

    Setting paths to configuration files used by Mainframe Express options.

  5. Building and testing the project

    Ensuring the project is complete.

  6. Distributing the project

    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.

2.2.1 Planning

Before you start work, you need to consider the following issues:

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).

2.2.2 Setting up a 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:

  1. Allocate one or more shared folders on the network to hold all the elements of the project. This is where all the production libraries for the workgroup are to be held. Give the programmers in the workgroup read-only access to these network shares. You don't have to make access read-only, but it prevents workgroup programmers from changing the contents of the production libraries.

    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.

  2. Use the project wizard to create a project for the application.

    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).

  3. Click the Workgroup tab on the Project View and add the following folders as needed:
  4. Add all the source files needed to build and run the application to the project. You can add source files from the mainframe by clicking Add Files on the Project menu and then by dropping down the list in the Add from field on the Add files dialog box, and clicking on My mainframe.

    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:

  5. Allocate a share on the network for use as a Staging Library.

    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.

2.2.2.1 Project Templates

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.

2.2.3 Setting up the Data Set Catalog

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.

2.2.3.1 Shared Catalog

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:

  1. Set the System catalog field on the Catalog tab of the Project settings dialog box to point to a network share where you are going to hold the catalog.

    This is not necessarily the same location as the data sets referenced by the catalog.

  2. Set up the allocation folder.

    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.

  3. Add the shared data sets to the catalog. Ensure that these files are available on one or more network shares available to members of the workgroup, or available on the mainframe via DataConnect. You can put data sets which are not updateable on read-only shares.

2.2.3.2 Local Catalogs

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:

  1. Add the shared data sets to the catalog. Ensure that these files are available on one or more network shares available to members of the workgroup, or available on the mainframe via DataConnect. You can put data sets which are not updateable on read-only shares.

  2. Set the System catalog field on the Catalog tab of the Project settings dialog box to point to a relative path for the catalog. For example, to keep it in the same folder as the project file:

    .\

  3. Set up the allocation folder.

    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.

2.2.4 Setting up Other Shared Resources

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:

2.2.4.1 Considerations for CICS Support

There are two resources issues to consider.

2.2.4.1.1 Resource Definitions

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.

2.2.4.1.2 FCT Considerations

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.

2.2.4.2 Considerations for IMS Support

There are two separate types of resource to consider for IMS:

2.2.4.3 Considerations for DB2

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.

2.2.5 Building and Testing the Project

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:

  1. Build the project.

    This compiles all the sources in the project to the Production level Load Libraries.

  2. Run the application, by clicking Start Debugging on the Debug menu.

    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.

2.2.6 Distributing the Project

When the project has been tested and is complete, you can distribute it to the programmers in the workgroup. To distribute the project:

  1. Add a Testing level to the project. You will need at least one Testing level and you can have up to nine. See the section The Workgroup View in the chapter Workgrouping in your User's Guide for more information about Workgrouping levels.

    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.

  2. Copy the .mvp file together with any other resource files that are to be accessed locally (system catalog and CICS resource files) to a network share available to the programmers in the workgroup.

    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.

2.3 Promoting and Managing Changes

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.

2.4 Tips and Tricks

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:

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.

PreviousInstallation Considerations Accessing Mainframe FilesNext"