Edit and Manage IMS Data
BMC AMI Test Drive
File and Data Management
Getting Started with the BMC AMI DevX Data Studio Editor
The goal of this Test Drive section is to provide you with experience accessing IMS data from the BMC AMI DevX Data Studio Editor.
This test drive will take you through the following activities:
- Preparing IMS environment
- Accessing IMS Environment
- Viewing IMS Environment Information
- Navigating and editing IMS data
- Exporting IMS data
- Create and utilize bookmarks
- Search and replace invalid IMS data
Instructions
- This guide contains many screenshots to provide a visual reference.
- Please note each place that you must enter your own specific ID or number as a substitute for XXX. Your ID was provided in the email notice.
- You must complete each step before proceeding to the next to follow the test drive script successfully.
This script requires that you first complete the "Getting Started" script.
You may need to log back into the TestDrive host connection, if your host connection times out at any point.
If at any time during the execution of this script the BMC AMI Common Enterprise Services (CES) Login popup is shown, enter your test drive ID and password under User ID and Password, check the Save credentials box and then depress the ENTER key or click OK.
Preparing IMS Environment
First, you will need to login to TestDrive.
Then you will run a job to create the datasets needed for your Test Drive IMS environment.
When you refresh, your IMS files now appear with "FI" as the third node of the datasets.
Note: We will not be using all the datasets in this script. To avoid corruption, only access IMS database datasets through the IMS editor and not directly.
Accessing Your IMS Environment
Your new IMS filter will now appear under the IMS for z/OS folder.
The File-AID Data Editor Request window will open.
Viewing IMS Environment Information
A window will open displaying detailed information about the IMS Environment attributes. This information can be useful for troubleshooting and identifying resources utilized in a specific IMS environment.
Other parameters that can be specified in the DevX Data Studio Editor Request can be accessed by clicking the additional tabs. Data Editor Requests can also be saved and accessed for future use.
You can also specify which segment that you want to start on in your Edit/Browse session.
Navigating and Editing IMS Data
Once the check-box is unchecked (it may take two clicks when segment list is displayed), click the Run button at the bottom right corner of the Editor Request window to execute the request.
The IMS data is opened for edit. The view for editing data is very limited in the Host Explorer perspective.
The Data Studio perspective gives us much more room in the edit view to work with and the ability to open simultaneous edit sessions on the same screen under a different tab. We can also use another frequently used feature of DevX Data Studio to be able to view even more data on the screen. In Eclipse, if you double-click a view tab, the view will be maximized. To restore the view back to the original size, you just double-click on the tab again. Let's maximize our data area to see more data.
By default the "Formatted" view of the data is selected with the record layout. Note the "Unformatted" tab at the bottom of the screen.
Unformatted mode allows users to view and edit multiple segments simultaneously on the same screen. Indentation is used to indicate the hierarchy of the segments. Clicking on a segment will show segment details (i.e. Concatenated key) at the top of the window.
When we return to formatted mode, notice that many of the data values seem to be truncated.
Note that the data is displayed in formatted mode with the layout on the left and the data values on the right. Also note that "invalid data" (data that does not match the layout definition) is displayed in a red font in hex mode to quickly identify potential issues. One solution would be to overtype the invalid data with valid data directly on the screen but let's leave it for now. We will explore another way to remedy this later in the exercise.
Users can also toggle the Display Mode to display all data values in hexadecimal format.
The hexadecimal values are now displayed and can be edited in addition to the character values.
The next icon at the top right is the "Visualize DBD" icon. This option will visualize the IMS DBD relationship information so we can better understand the data we are working with.
The DBD Visualization is now displayed. Note that the DBD visualization is impacted by which segment you are positioned on when the visualization is generated.
Your visualization may not be identical to the screenshot shown.
Note that for large databases you can use the Collapse and Expand commands available on this menu to see only specific segments or portions of the database.
This visualization may also be exported for future reference or to share with others.
The next icon at the top right is the "Export Data" icon. This option allows users to easily export IMS data to other formats.
Note the various formats that you can export formatted IMS data to and the options.
Navigation
Directly underneath the icons we just covered are the navigation icons (right angled arrows) that allow us to navigate forward or backward through the IMS data. Note that the back arrow is not selectable because we are positioned at the first segment.
Note the dynamically updated Parent and Concatenated key information at the top of the screen as you advance segments.
Now that we are positioned on the ORDR020 segment, let's look at a couple of other navigation options. On the menu bar next to the binocular icon there is a "Navigation (Paging)" icon that looks like a yellow arrow pointing down and has a black drop-down menu indicator next to it.
This will take us to the first child segment in the hierarchy. Note the other navigation options available. You should now be positioned at the first child segment for the ORDR020 segment. We can verify that by the "Parent" and "Concatenated key" information displayed.
Let's look at another way to access the navigation options.
This will position us at the first twin. Repeating will navigate through existing twins.
Note this segment also has invalid data displayed in red.
This will save our bookmark for future reference.
This will position us at the bookmark we defined earlier. Bookmarks can be very helpful in navigating large IMS databases.
Search and Replace IMS Data
We are now positioned back on our ORDR020 segment. Now let's explore how we can remedy the invalid data issues using the Search/Replace feature.
This will cause DevX Data Studio to search for invalid numeric data (Invalid keyword that we selected) and replace it with a zero value which is a valid numeric value.
You should see the number of occurrences replaced in the top left of this box. Click on "Close"
DevX Data Studio edit requests can be saved and executed at a later time.
Conclusion
You are done – your job has been to browse/edit IMS data using the DevX Data Studio Data Editor. As a part of this exercise, you have been able to use BMC AMI DevX Data Studio to:
- Prepare an IMS environment
- Access IMS Environment using filters
- View IMS Environment Information
- Navigate and edit IMS data
- Create and utilize bookmarks
- Export IMS data
- Search and replace invalid IMS data
Congratulations! This completes the IMS Editor tutorial for BMC AMI Test Drive.
Should you wish to restart this Test Drive script, follow the restart instructions at the beginning of this script.
NOTE: At any point should you need to restart this Test Drive script, follow the instructions below:
- Delete any IMS filters you may have created by right-clicking and selecting Delete
- Restart script from beginning (IMS datasets will be deleted and recreated by DOXIXCPY)