Change an ASM PGM
Contents
Getting Started with SCM- BMC AMI DevX Code Pipeline
The goal of this Test Drive is to make a change to a ASM program using BMC AMI DevX Workbench for Eclipse, generate, and promote it to Production using BMC AMI DevX Code Pipeline. 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
- Code changes
- Generating/compiling
- Promotion to Test and Production runtime environments
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.
Code Changes
Your development task in this Test Drive is to change a ASM program using the DevX Workbench editor, then generate and promote it through the Application Life-Cycle to Production.
First, you will find and add a ASM program into an Code Pipeline Assignment from which you can perform all this work.
The Repository View lists the ASM Components for your application.
Your Assignment has been created and you should now have an ASM program in it. The Assignment Task List view will open and the Task that was added will be listed. Every operation that needs to be performed on this Task and other Components which are impacted by changing this Task (edit, impact analysis, compile, promote, deployment, etc.) can be performed from this Assignment or other Assignments. Assignments are where developers will spend most of their time. Note that the ASM program in the Assignment is checked out and sitting in the DEV1 level. The Checkout Date/Time and User ID is reflected in the Task information. At checkout, a destination level for the checkout was chosen – DEV1.
A picture of the Life-Cycle is presented. You will notice the levels containing the Versions of the highlighted ASM program are colored indicating the existence of a version of that Component at those levels. From this picture it is very easy to visually see where Versions exist. By choosing the DEV1 Level, you have defined the Path to ProductionDEV1-QA1-STG-PRD. Other versions of these Components may also exist at other levels and may be passing through the other three paths – FIX, DEV2, or DEV3. Four paths were created for the application – one for emergencies starting at level FIX and three for development starting at DEV1, DEV2, and DEV3. The application level structure is customizable when defining the applications to Code Pipeline. Any number of paths can be defined with a minimum of three Levels.
Generate (AKA Compile)
The ASM program will be generated/compiled, and your Assignment Task List will be updated to reflect the new status.
- The Operation will be Generate
- You will have the opportunity to change your compile options
- The User ID, Date/Time will be updated
- The Message will be updated to reflect the successful completion of the generate
Now it is time to compile/generate the ASM program, so we can do our testing. To do this:
A screen will appear and give you the opportunity to change some of your compile options. This screen is customizable for your site. Any options you may need at compile and link time can be added to this screen. Make sure a version for the compiler is selected. Code Pipeline retains the generate options for each program at each level, so you do not need to change the generate options every time you generate.
The status column will display a message indicating that the Task is being generated. 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. After the generate finishes you can browse the Generate listing at any time.
Code Pipeline collects each of the parts created as part of the generate (Load, Listing, DBRM, etc.) and registers them against the source. The generate of this program created an Object, Listing, Load, and a DDIO (part DMEM). The types of parts created can be unique by application and type of component as well as the values of the generate parms. You can also see the name of the datasets that the parts are stored in.
Promotion
At this point you have:
- Edited an ASM program
- Used the DevX Workbench Editor to help you make your changes
- Generated your program with the option to change the generate parameters
Now you are ready to promote your changes to the QA1 level.
This action will create a Set Container. Sets are a special category of container that are used to conduct operations such as promotion and deploy. They are temporary and created by Code Pipeline as needed for the work. This allows you to promote subsets of Tasks within an Assignment container without the need to act on all the Tasks at once. Once you click Promote the selected Task(s) are placed in a SET container for the promotion. The Code Pipeline Set processor will:
- Perform the promotion of the source to QA1
- Cleanup the DEV1 level (source and parts if applicable)
- Perform generates, in order, of all the Task(s) in the SET which require a generation
A notification will appear in the lower right of the DevX Workbench indicating the Promotion has completed.
In the screenshot below, you can see the promote operation has completed – the Task has been promoted to QA1 (see the Level value and the Operation in the Task List as well as the highlighted Level in the picture). Note the Operation column shows Generate as the last operation. The SET processor performed a promotion and then a generation as Code Pipeline recognized a generate was required for ASM types at the QA1 level based on the configuration of this application. This can be configured by the Code Pipeline administrator.
Let us assume all the testing at the QA1 level has been successfully completed and you are ready to promote to the STG level.
In the screenshot above, you can see the promote operation has completed – the Task has been promoted to STG (see the Level value and the Operation in the Task List as well as the highlighted Level in the picture). Note the Operation column shows Promote as the last operation. The SET processor performed a promotion. The Code Pipeline Set processor:
- Performed the promotions of all the parts to STG
- Cleaned up the QA1 level (source and parts if applicable)
Assuming all the testing at the STG level has been successfully completed, you are now ready to promote the Tasks to the PRD level.
In the screenshot above, as the Task(s) in the SET are being processed, you can see:
- The Task will be selected for a Promote
- Code Pipeline will start a SET processor for this SET
- The ASM program, and its parts will be promoted
You can monitor the progress by clicking the refresh button.
A Set container will be created. The selected Task(s) are being placed in a SET container for the promotion. The Code Pipeline Set processor will:
- Perform the promotions of all the parts to the PRD Level
- Cleanup the STG level source and parts as applicable
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.
Below the STATUS shows 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 in the ISPF interface
- Web interface (including mobile browser)
You can see in the updated screen below that:
- SET processing has completed
- The ASM program has been processed for a Promotion and is now at the PRD level
The Promotion to the PRD level has completed. The source and parts for the ASM program were moved to the PRD level Life-Cycle libraries and the STG level libraries were cleaned up as appropriate. Notice the Operation column shows Implement as the last operation. Code Pipeline performed any tasks that were configured for deploy and activation. An example of a Deploy Implementation activity is the copy of the executable load module into a CICS or IMS runtime library. Examples of an activation activity would be a DB2 Plan or Package Bind or a CICS New copy.
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 Code Pipeline Container List View.
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 ASM program and promote to Production. As a part of this exercise, you have been able to use DevX Workbench and Code Pipeline to execute a workflow:
- Created an Assignment
- Added and checked out an ASM program
- Changed it using DevX Workbench Editor
- Compiled/Generated the program
- Viewed the listing from the Generate
- Viewed the generate output from JES
- Viewed the Parts created as part of the Generate
- Promoted the Task from DEV1 to QA1 with a generate of the program
- Promoted the Task from QA1 to STG
- Promoted the Task from STG to PRD
- Performed an approval
- Closed your Assignment to complete the change cycle
Congratulations! This completes the Code Pipeline tutorial for BMC Test Drive.