Edit and Manage VSAM and MVS Files


BMC AMI Test Drive


This tutorial will introduce you to the BMC AMI DevX Data Studio that enables you to manage various file types and understand data relationships.

Revised: 2024/10/15 00:00 


 and Data Management


Getting Started

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.
  • You must complete each step before proceeding to the next to successfully follow the test drive script.

This script requires that you first complete the "Getting Started" script.
 If, at any point during your experience, your host connection times out, you may need to log back in to the TestDrive host connection.

image-2023-4-10_9-20-31.png

If at any time during the execution of this script the Common Enterprise Services 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.


BMC AMI DevX Data Studio Data Editor

The Data Editor enables you to edit data files and provides similar functionality to the edit and browse functions in File-AID MVS, DB2, and IMS.  Workbench for Eclipse takes a "data is data" design approach: If you know how to use the Data Editor for VSAM files, you also know how to use it for DB2 tables. In Part 4A, you will learn the basic functionality of the Data Editor.


Do This
  • Open the Data Editor by going to the BMC menu and selecting DevX Data Studio.

image-2024-3-13_10-15-44.png


Note: Instead of "CWEZXXX.WBSAMP," you should see "yourid.WBSAMP" as the first two nodes of the dataset names.

Do This
  • Open a dataset in the Data Editor by right-clicking on yourid.WBSAMP.EMPLOYEE and choosing Open with File-AID Data Editor.

image-2024-3-13_10-30-22.png


Do This
  • Enter yourid.WBSAMP.LAYOUTS(EMPLOYEE) in the "Layout dataset" area.
  • Click Get Layout.
  • Add EMPLOYEE for the Request Name at the top.
  • Click Run. 

image-2024-3-13_10-32-44.png


Note for future reference: If you do not have a layout and want to view your data unformatted, uncheck Use record layouts.

We are defining a request to see the dataset. Naming this request allows you to reuse it in the future.


Do This

 Data Editor opens the file for display.

image-2024-3-13_10-35-0.png


Do This
  • Click Return to request to modify the request with some selection criteria.

image-2024-3-13_10-35-46.png

Using Selection Criteria


Do This
  • Select the Conditions tab.
  • Click <select field> to view the column list.

image-2023-4-5_11-30-26.png

We are using a record layout, so we will build formatted conditions.

 

Do This
  • Select the Formatted radio button.
  • Click OK.

image-2024-3-13_10-37-8.png

Do This
  • Scroll down and Click on EMP-MARITAL-STATUS.
  • Click OK.

image-2024-3-13_10-38-19.png


Do This


  • Under the Operator column, select the dropdown menu.
  • Choose the "is equal to" option.

image-2023-4-5_11-32-39.png



Do This
  • In the Value column, type "S"
  • Run the request by clicking Save and then Run.

image-2024-3-13_10-40-7.png

 Tip: At this point, do not click Add Condition. This would start another set of conditions.

You now see only specific records that match the selection criteria.  Note that the record numbers from the file no longer match the row numbers being displayed under the filter column.  


Do This
  • Click on the Show Data Source Statistics icon on the top right.

image2021-12-20_13-53-55.png


Here you will see how many records were read from the file and with our selection criteria applied how many records were selected.  This can be very useful information when dealing with large files and navigating through the paging icons.  


Do This
  • Click OK to return to the edit screen.

image-2024-3-13_10-41-21.png




Column Chooser

This section investigates the Column Chooser function, which allows you to eliminate and reorder columns in the display.  Let's display only the relevant columns including our selection criteria.


Do This
  • Right-click on the column header to display the column commands.
  • Select Choose Columns.

image-2024-3-13_10-42-31.png


Do This
  • Click on one of the column names and simultaneously hold down the Ctrl and A keys on your keyboard.
  • Click the left arrow to move your selections into the Available Columns area.

image-2024-3-13_10-43-33.png



Do This
  • Select the following columns by holding down the Ctrl key while clicking the column names: EMP-NUMBER, EMP-LAST-NAME, EMP-FIRST-NAME, EMP-MID-INIT, EMP-DATE-OF-BIRTH, and EMP-MARITAL-STATUS..
  • Click the right arrow.

image-2024-3-13_10-46-40.png


Do This
  • Press Done.

image-2024-3-13_10-48-41.png

Now the Data Editor shows just the columns chosen.  You can see that the Marital Status column reflects the Selection Criteria is equal to S.

image-2024-3-13_10-50-13.png


Do This
  • Reset the display to show all columns by right-clicking on the column header and selecting Show All Columns.

image-2024-3-13_10-51-10.png

Row vs Table Mode

The Data Editor within Workbench for Eclipse displays the data in Table Mode by default. You can also view data in Row Mode at the same time.


Do This
  • Click Show/Hide the Row Editor to toggle Row Mode on and off.

image-2024-3-13_10-54-11.png

The table and row stay in sync when different fields are selected. 

Do This

The screen has now been divided showing table mode and row mode.  Note the middle division with up and down arrows to maximize and minimize each mode.  


  • Use the vertical scroll bar within each mode to view more records or more fields.
  • Click on Line 3 in table mode to see Row Mode synchronize.
  • Click on the right arrow in the left-hand border.

image2021-12-20_14-11-24.png

Do This

The screen has now been divided again with an additional pane showing the Metadata Viewer displaying the copybook being used with this file.  


  • Use the vertical lines to drag right to view more of the Metadata Viewer.

image2021-12-20_14-14-32.png

 Hex mode displays the data with up-down hex.


Do This
  • Select Display Mode to toggle between Normal and Hex mode.

image-2024-3-13_11-2-59.png

Do This

You now see data displayed in both table and row mode in Hex format.


  • Minimize the Metadata Viewer by clicking on the left arrow .
  • Remove the Row Mode by clicking on the Show/Hide Row Editor toggle icon in the top right.
  • Click the Unformatted tab at bottom to see Hex mode in this layout.

image2021-12-20_14-30-26.png

Do This

You are now viewing the unformatted data in Hex mode.

  • Select Display Mode to toggle back to Normal mode.
  • Click the Layout Formatted tab at the bottom.

image2021-12-20_14-40-11.png

Find and Replace Data


Do This
  • Open the Find/Replace dialog by clicking the Binoculars toolbar icon or pressing Ctrl+F on your keyboard.

image-2024-3-13_11-5-10.png




Do This
  • Open the Numeric tab.
  • Type a value in the "Find" field.
  • Click Find All.

image-2023-10-12_10-36-35.png

The number of occurrences is displayed at the top of the Find/Replace dialog box above the tabs.  Noted are occurrences on the current page, and total number found in the entire file.

image-2023-10-12_10-38-8.png


Do This
  • Type a replacement value in the "Replace with" field.  For a Replace All, use the Column/Field Select button to narrow the action. 
  • Select the EMP-REGION-TAX-WITHOLD-PCT field with a left arrow to selected columns.
  • Click OK and then Replace All.

image-2024-3-13_11-25-16.png

The number of occurrences replaced is displayed in the message area.


Do This
  • Click Close.

image-2024-3-13_11-11-30.png

Changed rows are marked with an icon in the far left column. This column allows you to select an entire row and issue row commands with a right-click. An editor icon also appears in the left-hand column when data in the row changes.

image2021-6-22_15-44-5.png



Do This
  • Click on the fourth row then right-click on the left-hand column.

image-2024-3-13_11-55-56.png

For a changed row, the Undo command will be available.
You can undo changes in any order, even out of sequence of how the changes were made.


Do This
  • Simultaneously press the F and Ctrl keys on your keyboard.
  • Open the Numeric tab.
  • Click the dropdown next to "Find operators" to select Invalid.
  • Click Find All.

image-2023-10-12_11-41-39.png


Do This

Notice the message: "3 occurrences found" .  

  • Click Close.

image-2023-10-12_11-37-47.png

Add a Filter to Data

The filter row is located between the headers and the data.  The display filters all but that row.


Do This
  • Within the filter row, type a name under EMP-LAST-NAME and hit enter.

Filters can be set on multiple fields to view only specific data.

  • Click the Clear Filter icon next to the text in the filter row to display all the data.

image2021-9-23_17-14-56.png

Freeze Columns


Do This
  • Right-click on the header row.
  • Select Freeze Columns.

image-2024-3-13_11-59-43.png


Do This
  • Using the yellow arrows, select and move the two fields shown below to the Frozen Columns area.
  • Click OK to return to the file display.

image-2024-3-13_12-0-54.png


Do This
  • Scroll left and right to see the effect.

image2021-9-23_17-19-28.png


Navigation Menus and Icons


Do This
  • Select a row and then click the Navigation (Paging) menu in the toolbar or right click for the command menu and select Navigation.


    These items are also available with the icons in the top right of the screen.

image-2023-4-5_11-55-17.png

Do This
  • Click on the Go To icon in the top right.

image-2023-4-5_11-56-59.png


Do This
  • Type a line number and select OK.

Note you can Go To a specific line or page. You can also go to a Page by typing a number in the Page box under the icons and clicking Go.

image-2024-3-13_12-2-58.png

Do This
  • Because of any changes made to the data you may receive this message.
  • Click OK to continue.


image-2023-4-5_12-7-13.png

Do This
  • We now see the last line, 32. Note that this is Record #47 in the file, but since we did not retrieve all of the data because of selection criteria the line numbers being displayed and record numbers do not match. You will also see this as you insert and delete records.


image-2023-4-5_12-9-0.png

Do This
  • Click the Go to Key icon on the top right.



image-2024-3-13_13-29-32.png

Do This
  • Type in a key value.



Note you can enter text or hex values, and File-AID shows the offset and length of the key for this file.

You may also go to the next key if there is not an exact match.


image-2024-3-13_12-5-38.png


Do This
  • You are now positioned at the correct record.
  • Close the file by clicking the "X" on the tab with the file name.
  • Click Save to save your changes.

image-2023-4-5_12-12-39.png

Compare for zOS Files

You can run previous requests, organize favorites and manage requests using the DevX Data Studio toolbar icon, denoted with the orange DevX Data Studio icon.

image-2024-3-13_13-31-30.png


Another option is to select the Data Explorer tab and expand the File-AID Requests in Workspace.

image-2024-3-13_13-33-7.png

Notice that you can also launch the Compare functionality from either of these menus.

Another way to launch the Compare functionality:


Do This
  • In the Host Explorer tab select yourid.WBSAMP.COMPARE and yourid.WBSAMP.EMPLOYEE by holding down the Ctrl key while clicking the names.
  • Right-click on one of the files, select Compare With and then Each Other Using File-AID.

image-2024-3-13_13-35-15.png


Do This
  • Format the compare by selecting Browse next to the Layout field.

image-2024-3-13_13-36-50.png

Do This
  • Type yourid.WBSAMP.LAYOUTS and click List
  • Select the Employee member and then OK.

image-2024-3-13_13-37-57.png

Do This
  • Choose Run..

image-2024-3-13_13-43-13.png

The Comparison Summary will open.


Do This
  • Maximize the view by clicking the square in the top right corner of the window or by double clicking the tab.
  • Click on the yellow Differences bar within the Comparison Summary chart to display Comparison Details.

image-2023-4-5_12-23-52.png

Explore and play with the filter controls for File Differences and Record Differences. Your results may vary depending on changes made to your data.

image-2023-4-5_12-26-19.png



Do This
  • Select a Changed Record in the top section to see differences highlighted below. 
  • Change vertical to horizontal view with buttons on right of that section.
  • To finish close the window by clicking the X in the tab.

worddavb1ad6ddc75e83d433cbbf393d7777347.png


This completes the File-AID Compare section.


Data Visualizer

The Workbench for Eclipse Data Visualizer allows you to see relationships that you have defined between DB2 tables and VSAM files. This is equivalent to the File-AID for DB2 and File-AID/RDX functionality, where you can display relationships between files in the ISPF interface.
 In this section, you will view a relationship file visualization containing sample tables.


Data Visualizer Perspective


Do This
  • Open the Data Visualizer Perspective by opening the BMC menu and selecting Data Visualizer.

image-2024-3-13_13-45-10.png


Do This
  • On the Import tab, click Relationship file.
  • Select the Import button.

image-2024-3-13_13-46-31.png

Choose the Visualizer Data Source


Do This
  • Click Browse to view the file list mechanism.

image-2024-3-13_13-47-49.png


Do This
  • In the Name field, type yourid.WBSAMP.RELATION.
  • Click List and then OK.

image-2024-10-15_16-43-2.png


Do This
  • In the DB2 Location dropdown menu, select DB01CW01.
  • Click Finish.

image-2024-3-13_13-53-5.png

Note: DB01 is a subsystem on the LPAR CW01 where this relation file was created. The relationship information itself is self-contained and independent of the fact that you are currently connected to a different LPAR.


Topaz displays all the relationships defined in this file.

You may wish to change the way the visualization is laid out, either for readability or to ensure everything is on the screen. On the graph, you can right-click and select a different layout to see alternative ways to lay out the information.

image2021-6-22_16-34-32.png

Relationship Visualizer Object Filters

We can filter out parts of this chart to see only the section in which we are interested.


Do This
  • Click the Group ID option, and type "2-29."
  • Select Add.

image2021-6-22_16-35-30.png

The Relationship Visualizer shows:

  • Application relationships (dashed lines)
  • Referential integrity (solid lines)


Do This
  • Maximize the visualizer by clicking the square icon in the top right corner.
  • To finish close the window by clicking the X in the tab.

worddav5b52e44bc893c19b4981db5eb806c21c.png

This completes the Data Visualizer section.


Search

Search within Workbench for Eclipse allows you to locate the contents of multiple datasets simultaneously. This is similar functionality to File-AID/MVS option 3.6 or ISPF option 3.14 (SEARCH) or 3.15 (SEARCHE).

Do This
  • Open the Host Explorer perspective by opening the BMC menu and selecting Host Explorer or by selecting the Host Explorer perspective switcher.

image-2024-3-13_13-55-44.png



Do This
  • Reset the Host Explorer Perspective by right-clicking the perspective name, selecting Reset and confirming.

image-2024-3-13_13-56-54.png


Do This
  • Select both WBSAMP.COBOL and WBSAMP.JCL.
  • Right-click on WBSAMP.JCL.
  • Select Search.

 

Tip: Hold the Ctrl key on your keyboard while selecting your items.

image-2024-3-13_13-58-33.png

At the top of the Search window, the first two tabs are for the File-AID and Host Explorer dataset searches.

File-AID Search

Host Explorer Search

Search sequential, PDS and, VSAM Files

Search sequential or PDS files only

Option to process as JCL

Does not provide the JCL processing capability

We will use the File-AID search.


Do This
  • Type "Salary" in the Search for text field and click Search.

image-2023-4-5_12-37-15.png


Do This
  • Results will appear in a new tab.  Maximize the search view by double clicking the search tab.

image-2023-4-5_12-38-9.png


Do This
  • Click Expand All within the Search tab.

image-2023-4-5_12-39-12.png

The first section of the search results shows the COBOL source code where salary is a part of a data name or is a constant. Another section shows where salary is part of a comment in the JCL.

worddav24a9aaeba3b4d70cb75c2724d1fdf81b.png


Do This
  • Double-click on Employee Salary Data in the last entry.

worddav24a9aaeba3b4d70cb75c2724d1fdf81b.png

The member opens with the cursor position at the search result.

image-2023-4-5_12-41-19.png


Do This
  • Click on the X on the toolbar in the search tab window to remove the highlighted line from the search results.
  • Close the JCL member.

worddav336236a1cc720a82181eade19931a750.png

Tip: You can use search results like a checklist, removing results as tasks are completed.

You may choose to reset the Host Explorer perspective at this point.

This completes the Search section.



 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*