You are on page 1of 4

Chapter

5
Deleting Access Paths

This chapter contains instructions on how to delete access paths from your
application. You may want to delete access paths created in error or those no
longer needed.

Deleting an Access Path


Access paths can be deleted only if they are not
referenced by any other function or access path. A
cross-reference panel, Display Access Path Reference,
is available to show you where a given access path is
used.

To delete an access path:

1. Zoom into the file. At the Edit Database Relations


panel, type Z next to any relation for the selected
file and press Enter. Alternatively, you can use
selection option 2 from the Edit Model Object List
panel.

The Edit File Details panel displays with a list of the


access paths for the file.

2. Delete the access path. Type D next to the access


path you want to delete and press Enter.

The Delete Access Path panel displays.

Building Access Paths BAP 5 -- 1


Deleting an Access Path

Op: YOU DSP32 9/30/93 13:58:57


DELETE ACCESS PATH MYMDL

File name. . . . . . . . : Customer Attribute . : REF


Access path. . . . . . . : Customers by name Type. . . : RTV

Source member. . . . . . : MYAGREL2


Source member text . . . . : Customer Customers by name

Delete object & source . . . : Y


Generation library . . . . . : MYGEN

Format GEN Format text Associated


? Seq name pfx (Based on file) Update access path
1 FAGREA7 AG Customer Retrieval index

F3=Exit, no update ENTER=Validate

3. Validate your actions . Press Enter to validate the


deletion.

An additional confirmation prompt displays before the


access path is deleted. This prompt allows you to
specify that the source and object are to be deleted.

Synon/2E does not allow you to delete the access


path if it is referenced by any other function or
access path.

You must eliminate the references before you can


delete the access path. You can do so by
determining the usage of an access path.

4. Confirm the deletion. At prompt, press Enter to


confirm the deletion.

BAP 5 -- 2 Building Access Paths


Determining the Usage of an Access Path

Determining the Usage of an Access Path


1. View the access path usages. Enter U next to the
selected access path on the Edit File Details panel
and press Enter.

The Display Model Usages panel displays with a list


of functions and other access paths that reference
the selected access path.

2. View the functions that use the access path. Type


F next to the selected access path on the Edit File
Details panel and press Enter.

The Display Model Usages panel appears with a list


of the functions that reference the access path. A
function built over an access path is an example of a
function using an access path.

For more information:


on usages, refer to Generating and Implementing
Applications, Chapter 1, ‘‘Managing Model
Objects,’’ Impact Analysis topic and the
Synon/2E Command Reference, YDSPMDLUSG
command.

Building Access Paths BAP 5 -- 3


Determining the Usage of an Access Path

BAP 5 -- 4 Building Access Paths