Skip to main content

Using Rational ClearCase for System i for source code management

Bob Cancilla, Senior Systems Engineer, IBM 
Photo of Bob Cancilla
Bob Cancilla has over 30 years of experience developing large-scale enterprise systems, primarily as an IT executive and as an IT customer in the insurance industry. His expertise includes IT methodology and strategy, System Development Lifecycle (SDLC), security, business planning, business intelligence, and business governance. He is currently a product market manager for the IBM Software Group, Rational, working on Rational tools for System i and System z™ platforms.

Summary:  Find out why IBM Rational® ClearQuest® for System i™ and IBM Rational ClearCase® for System i provide the most useful Software Change Management (SCM) solutions for source code management.

Date:  02 Jan 2007
Level:  Introductory
Activity:  148 views

Introduction

Solutions including IBM Rational ClearQuest for System i and IBM Rational ClearCase for System i provide a strategic advantage over competitive offerings for managing software resources and application development processes. Explore typical IBM System i scenarios and the potential integration and synergy with third-party Software Configuration Management (SCM) software.


Understanding traditional i5/OS program source management

Typically, the i5/OS® source code files for programs such as RPG, COBOL, and CL are stored as members of a source physical file in a library (see Figure 1).


Figure 1. Typical i5/OS source code storage libraries
Typical i5/OS source code storage libraries

Often, developers create multiple libraries on a development machine or logical partition (LPAR) that implement the following:

  • Development testing environment
  • Integration testing environment
  • Quality assurance or acceptance testing environment
  • Production environment

Note: An environment is a collection of libraries that support test and production systems. An environment can contain a program library, a data collection library, or other libraries containing shared i5/OS objects and resources, such as message files, data queues, data areas, and text files.

Current third-party (non-IBM) Software Change Management (SCM) software vendors create an inventory of source members in a database file that maps the source files to the environment. The SCM software also identifies compiled executable or supporting resources and creates entries in an inventory database.

A checkout operation in a traditional SCM system copies the source code for a source-based object to the developer’s library. The SCM software creates a list of objects and generates command language (CL) to promote source and executable object files to the next environment. Traditional SCM systems define promotion as the move or copy between the following:

  • From the developer’s library to the integration library
  • From the integration library to the quality assurance library
  • From the quality assurance library to the production library

The developer defines the number of environments and the libraries in the environment. The SCM system requires that the customer map object types to libraries in each environment. For example, a physical file (*FILE) with the attribute PF-DTA could be mapped to each library in each environment. The current SCM vendors' tools promote objects with or without source as a complete file or object move or copy operation.

The vendor’s implementation of i5/OS security protects the objects. i5/OS has an excellent security mechanism, but it is dependent on how you implement it. Often developers have excessive access rights, such as *ALLOBJ, which basically bypasses all security checking, to facilitate their work on the system. Third-party SCM vendors use reports and analysis techniques to detect modifications to programs outside their software’s control. A key part of their compliance process is to review these reports on a regular basis.


Learning about the Rational ClearCase difference

The implementation of IBM Rational ClearCase introduces a major difference in operation and configuration for the System i developer.

ClearCase is implemented using the Remote System Explorer (RSE) feature of the WebSphere® Development Studio Client (WDSC) to import all source files from a source physical file on the System i computer to an iSeries project on the WDSC. This process physically copies all source files to the workstation running the WDSC (see Figure 2).


Figure 2. ClearCase initial load process
ClearCase initial load process

Once the objects are transferred to the WDSC workstation, the source members are then checked into the ClearCase Virtual Object Base (VOB) repository on the ClearCase server.

At this point, you can back up source files on the System i workstation and delete them from the system. The authoritative repository is now the ClearCase VOB. All developers must be registered as authorized ClearCase users, and their i5/OS security access rights no longer affect source management.


Exploring the WDSC-managed build scenario

You can automate the management of source and objects throughout a multiple environment development scenario using the WDSC with customization and some custom CL programs.


Figure 3. WDSC-managed build scenario
WDSC-managed build scenario

Figure 3 illustrates a WDSC-managed build and deployment scenario. In the example, a developer checks out program source from the ClearCase VOB to the WDSC. Programs are compiled and tested for unit testing purposes to a developer's private library on i5/OS. This process requires that source files be transferred to the System i workstation for the life of the compile, but the files can be deleted upon a successful compilation. The source file in the ClearCase VOB is the authoritative source file. In this example, you can deploy to integration, quality assurance, and production libraries by invoking an action in the WDSC and potentially invoking a customized CL program that could compile resources to the target library.


Figure 4. Third-party integrated environment scenario
Third-party integrated environment scenario

Figure 4 illustrates the modification and movement of a program through a typical development lifecycle. The developer checks out an object from ClearCase and modifies the program -- compiling and testing using his library and source files on the i5/OS workstation. When the project is completed, the object is checked into the ClearCase repository.

The developer can then use the third-party SCM tool to promote executable objects from the developer’s library to integration to quality assurance and, finally, to production. The third-party SCM tool could then distribute (copy) the executable objects from the production library on the customer’s development machine to any number of target production machines.

Note that while there is synergy between ClearCase and traditional SCM vendor software for i5/OS objects, there is no synergy in respect to J2EE, Java™, or other Web resources that the SCM vendors manage in the same manner as RPG, COBOL, DDS, CL, or other i5/OS objects.


Conclusion

You can configure Rational ClearCase and the WebSphere Development Studio Client to work in a standalone environment and manage the creation, modification, and promotion of i5/OS objects throughout the development lifecycle. The software also works with existing third-party SCM solutions that focus on promoting and distributing objects between environments.

In either scenario, Rational ClearCase provides superior management of the development process, protects resources throughout the development process, and provides superior security and integrity to help you meet rigorous audit requirements.


Resources

Learn

Get products and technologies

  • Rational downloads area: Download trial versions of Rational ClearCase and Rational ClearQuest from IBM developerWorks.

  • IBM trial software: Build your next development project with software for download directly from developerWorks.

Discuss

About the author

Photo of Bob Cancilla

Bob Cancilla has over 30 years of experience developing large-scale enterprise systems, primarily as an IT executive and as an IT customer in the insurance industry. His expertise includes IT methodology and strategy, System Development Lifecycle (SDLC), security, business planning, business intelligence, and business governance. He is currently a product market manager for the IBM Software Group, Rational, working on Rational tools for System i and System z™ platforms.

Comments (Undergoing maintenance)



Trademarks  |  My developerWorks terms and conditions

Help: Update or add to My dW interests

What's this?

This little timesaver lets you update your My developerWorks profile with just one click! The general subject of this content (AIX and UNIX, Information Management, Lotus, Rational, Tivoli, WebSphere, Java, Linux, Open source, SOA and Web services, Web development, or XML) will be added to the interests section of your profile, if it's not there already. You only need to be logged in to My developerWorks.

And what's the point of adding your interests to your profile? That's how you find other users with the same interests as yours, and see what they're reading and contributing to the community. Your interests also help us recommend relevant developerWorks content to you.

View your My developerWorks profile

Return from help

Help: Remove from My dW interests

What's this?

Removing this interest does not alter your profile, but rather removes this piece of content from a list of all content for which you've indicated interest. In a future enhancement to My developerWorks, you'll be able to see a record of that content.

View your My developerWorks profile

Return from help

static.content.url=http://www.ibm.com/developerworks/js/artrating/
SITE_ID=1
Zone=Rational
ArticleID=187248
ArticleTitle=Using Rational ClearCase for System i for source code management
publish-date=01022007
author1-email=rcancill@us.ibm.com
author1-email-cc=

My developerWorks community

Tags

Help
Use the search field to find all types of content in My developerWorks with that tag.

Use the slider bar to see more or fewer tags.

Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere).

My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Use the search field to find all types of content in My developerWorks with that tag. Popular tags shows the top tags for this particular content zone (for example, Java technology, Linux, WebSphere). My tags shows your tags for this particular content zone (for example, Java technology, Linux, WebSphere).

Rate a product. Write a review.

Special offers