Cobol PGM Selective Deploy
Contents
Getting Started with SCM – BMC AMI DevX Code Pipeline
The goal of this Test Drive is to deploy a Cobol program to multiple environments using Selective Deploy. BMC AMI DevX Code Pipeline can be configured so that users can select the environment(s) where programs are deployed. Code Pipeline enables developers to quickly and safely build, and test their mainframe code.
This Test Drive will take you through the following activities:
- Creating an Assignment
- Adding a Cobol program to the assignment
- Making a change to the program
- Generating/compiling
- Promoting
- Selective Deploy
- Viewing the deployment information
- Moving to production
- Automatic Deploy
- Closing the assignment
Instructions:
- This guide contains many screenshots to provide a visual reference
- Specifies every action you must take
- Please note each place that you must enter your own specific ID or number
- You must complete each step before proceeding to the next to successfully follow the guide
If at any point during your experience the host connection times out, you may need to log back into the Test Drive host connection.
In this Test Drive the screen shots provided have used specific values that may differ from your assigned values. These were provided in your email notice. Substitute your values in the screenshots.
Adding A Cobol Program To The Assignment
Your development task in this Test Drive is to change a Cobol program using the BMC AMI DevX Workbench for Eclipse editor, then generate and deploy it to selected environments using Code Pipeline. After you will complete the promotion through the Application Life-Cycle to Production.
First, you will find and add a COBOL program into an Code Pipeline Assignment from which you can perform all the work.
The Repository View lists the COBOL Components for your application.
Your Assignment has been created and you will have a COBOL program in it. The Assignment view will open and the Task that was added will be listed.
A picture of the Life-Cycle is presented. By choosing the DEV2 Level, you have defined the Path to Production→DEV2-QA2-STG-PRD.
Now that you have a Version of a COBOL program the next step would be to make changes to it.
Generate (AKA Compile)
The COBOL program will be generated/compiled, and your Assignment Task List will be updated to reflect the new status.
The Message will be updated to reflect the successful completion of the generate and the date and time will be updated. The screen will refresh automatically when the generate is done. At that time, the Task will be updated with the date and time of the generate, the user who performed the generate, and the operation will reflect a generate has occurred.
Promoting
At this point you have:
- Created a new assignment
- Checked out a Cobol program to the assignment
- Viewed the lifecycle
- Changed your program
- Generated your program
Now you are ready to promote your program to the QA2 level.
Selective Deploy
You will now be prompted to select the environments where TPROG01 will be deployed. Selective Deploy allows for users to choose the runtime / execution environments (Db2, CICS, Batch, etc) that programs are deployed to and can be configured at any hold or production level of the lifecycle. Users have the option to deploy to a select few or all of the environments available. In this Test Drive Selective Deploy is configured at the QA2 level.
A notification will appear in the lower right of the DevX Workbench indicating the Promotion has completed.
You will now see TPROG01 at level QA2 with a last operation of implement in the tasks view.
You can view information on the deployments that occurred to both QATST1 and QATST2 environments.
The Task History shows all the operations done against TPROG01 along with the time and set that was used to perform the work.
The Deployment view is opened and filtered on the set used for the deploys of TPROG01.
Package Details displays the modules that were deployed and the datasets they were deployed to.
If you highlight the next package, you will see the dataset where the Listing (DDIO) was stored. Notice the tasks were deployed to the TST2 sub environment. Click Cancel.
This View contains additional detailed information on the deploys. You will see all the information pertaining to the deploy request, dates, times, dataset names, etc.
Moving To Production
Now you want to promote TPROG01 up through the lifecycle and to production.
TPROG01 will now be at the STG level and ready to be promoted to Production.
A notification will appear in the lower right of the DevX Workbench indicating the application has been configured to require an approval for the promotion to PRD. The Tasks are locked in a SET for a Promote process, but the SET needs approval before the promote can proceed.
The Approval can be performed from:
- DevX Workbench/Code Pipeline
- TSO/Code Pipeline
- Web browser
- Mobile browser
For this Test Drive you will do the approval from DevX Workbench/Code Pipeline.
Automatic Deploy
You will see that TPROG01 is now at the production level and the last operation on the task is Implement. This is because the production level is configured to automatically deploy to 2 different LPARs, CWC2 and CWCC. Unlike Selective Deploy, this Automatic Deploy does not give the user an option to choose the environments where the programs are deployed to. The deployment starts once the task is successfully promoted to the production level.
Now you want to view the deployment information for the deploy that occurred at production.
You will see that the promote to production occurred and was immediately followed by the deploy.
On the left it can be seen that 4 packages deployed (2 to lpar CWCC and 2 to lpar CWC2) and all are marked as completed. Within each package is an item, which in this case was either a LOAD or DDIO module. Next we will dig a bit deeper and view information for both the package and item.
Closing The Assignment
You have completed your Test Drive, now it is time to close the assignment. As a Developer you are now finished with your Assignment, so it can be closed. Assignments are closed manually and are usually closed to unclutter the Container List View.
A Close confirmation panel is presented.
For audit purposes, Closed Assignments, Sets, and Releases are never deleted from Code Pipeline. They are just filtered out of the standard day-to-day filtering. Once an Assignment, Set, or Release is closed it is removed from the standard filtered list, but it is still part of Code Pipeline history and can be viewed at any time.
You are done! Your job has been to change a Cobol program and promote to Production. As a part of this exercise, you have used DevX Workbench and Code Pipeline to execute a workflow:
- Created an Assignment
- Checked out a Cobol program to the DEV2 level
- Made a change to the program
- Compiled/Generated the program
- Promoted the Task from DEV2 to QA2
- Selected the QATST1 and QATST2 environments for deployment
- Viewed the Task History
- Viewed details of the Selective Deploy
- Promoted from QA2 to STG
- Promoted from STG to PRD
- Approved the promotion to PRD
- Viewed details of the Automatic Deploy
- Closed your Assignment to complete the change cycle
Congratulations! This completes the Code Pipeline tutorial for BMC Test Drive.