Creating a view while browsing or editing
When you create a view during the browse or edit process, you can choose to create a temporary view or to save the view for later reuse.
To create a view while browsing or editing:
- If you want to be prompted to save your view, select option 0 Settings from the Primary Option Menu and then option 5 EDIT from the Settings Menu. The Editor Options panel is displayed. Enter "/" in Prompt to save the view when exiting the edit/browse session and then press the Exit function key (F3) to save this setting and exit the panel.
- Follow the instructions provided in Accessing your databases and select "New" for View usage on the Browse Entry or Edit Entry panel.
- The Database Positioning panel is displayed. Notice that the View field displays "Temporary".
- Use the X line command to deselect a segment type and press Enter, notice that the letter "C" appears next to the View header. The C indicator is displayed when you make any change to the view.
- Issue the VSAVE command, FM/IMS displays the View Save panel. Specify the name of a data set and member in which you want the temporary view saved, then press the Exit function key (F3).
- FM/IMS saves the view in the specified data set and returns you to the Database Positioning panel. Notice that the C indicator is no longer displayed and the View field now displays the data set and member name in which you saved the view.
- Use the X line command to deselect a segment type once more and press Enter. Notice that the C indicator appears as before.
- Press the Exit function key (F3) and if the Database Data Set Display or Database Data Set Specification panel is displayed press the Exit function key once more. The View Save panel is displayed once more, where you have the choice of saving the changes you made to your view or discarding the changes.
Note: You are only prompted to save your view before you
return to the Browse or Edit Entry panel,
if you have selected the Prompt to save view when
exiting edit/browse session option on the Editor Options
panel and you have modified the view during the session
and not saved it.
Related topics