CICS Explorer 5.3 FP8 which is released today at IBM developerWorks Mainframe Development (and 5.4 Open Beta),Â let you customize views to show exactly what you wish to see and then name them to suit. (See Customising views in CICS Explorer). So you have been creative and customized some views that are really helpful in your job. What do you do if a co-worker looks over your shoulder and says â€śHey thatâ€™s neat, can I have a copy of that viewâ€ť?
In this blog post youâ€™ll discover:
- How to share views with co-workers
- How to load a views file shared with you
View sharing, a play in two acts.
Act 1: Views worth sharing
Julian has asked Stan for help with a CICS files problem and Stan is helping him. Stan sees that Julian has a created a couple of useful file views.
One shows local KSDS files that have a Key Length greater than 20 and another view displays record counts on open local files, like this:
Stan asks Julian to share the views because he doesnâ€™t have the time to set them up himself.Â Julian uses a quick way to export the files.Â He clicks on the open view configurations spanner icon (shown above) in one of the views to show the CICS View Configurations in the Eclipse Preferences.
He then clicks on the Export button to display the Export Views panel. Â To quickly find the views Stan wants, Julian types “files” in the filter box at the top of the view. He is in a rush so he uses the Select All button to check all of the views shown for export. Finally he uses the browse button to navigate to the Desktop folder and then modifies the file name as shown.
He presses finish and the views are exported to the file.Â Stan finishes helping Julian and returns to his PC, meanwhile Julian emails the “files views.xml” file to Stan.
Act 2: Stan loads Julian’s views
Stan sees the email from Julian and saves the attached file to his Desktop.Â Â Stan opens the CICS View Configurations and clicks on the Import Views button.Â He browses to his Desktop and selects the file he saved.
Because Julian was in a hurry when exporting the views, he exported two standard views provided by CICS explorer as well as his customized views.The Import Views panel highlights these views because Stan already has them in his CICS Explorer.Â Stan isn’t sure if Julian has also modified these views so he chooses to import them.Â He also wants to remember where the new views came from so he types “Julian” in the suffix box at the bottom of the panel.
Adding the Julian suffix has resolved the conflicts and Stan can continue without overwriting his existing views.Â He presses the Finish button
Stan sees the new views in the CICS View Configurations.Â (He has used a “files” filter to exclude other views, but without a filter CICS explorer will position the first imported view so it is visible). Â The imported views are marked with an asterisk because this is a preferences page. Until OK is pressed Stan can still back out of any changes by pressing Cancel.Â Stan can see he still has his original local and remote files views as well as the ones he imported from Julian.Â Stan is reassured so he presses OK.
Stan can display the imported views by using the Operations menu in CICS Explorer.
Tips and Tricks ?
- If you customize a lot of views you could export all of the views as a backup file in case you lose your eclipse workspace.
- The Export and Import buttons on the CICS View Configurations preferences page are a convenience. The panels displayed are standard export and import wizards – so you can get to them from the Files menu like this:
Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â
However if you Import from the files menu, when you press Finish on the wizard the views are imported immediately.Â You don’t get another chance to back out like you do from the Preferences page.
- Quick Filters are not included in the configuration so they don’t get exported.
- If you want to try importing these views yourself then here they are: files views
Important note: Please right click and use “Save Link As…” toÂ save a copy of the views file.Â (If you click directly on the link, the file will open in your browser missing a header line which is required).
Please comment and let us know what you think of this facility.Â Thanks!