5 delete

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

Upload: rajeev-ranjan

Post on 26-Jun-2015

23 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: 5 Delete

Chapter

5 Deleting Access Paths

This chapter contains instructions on how to delete access paths from yourapplication. You may want to delete access paths created in error or those nolonger needed.

Deleting an Access Path

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

To delete an access path:

1. Zoom into the file. At the Edit Database Relationspanel, type Z next to any relation for the selectedfile and press Enter. Alternatively, you can useselection option 2 from the Edit Model Object Listpanel.

The Edit File Details panel displays with a list of theaccess paths for the file.

2. Delete the access path. Type D next to the accesspath you want to delete and press Enter.

The Delete Access Path panel displays.

Building Access Paths BAP 5 -- 1

Page 2: 5 Delete

Op: YOU DSP32 9/30/93 13:58:57DELETE ACCESS PATH MYMDL

File name. . . . . . . .Access path. . . . . . .

: Customer Attribute . : REF: Customers by name Type. . . : RTV

Source member. . . . . . Source member text . . . .

: MYAGREL2: Customer Customers by name

Delete object & source . . . Generation library . . . . .

: Y: MYGEN

Format? Seq name 1 FAGREA7

GENpfxAG

Format text(Based on file)Customer

Associated Update access path Retrieval index

F3=Exit, no update ENTER=Validate

3. Validate your actions . Press Enter to validate thedeletion.

An additional confirmation prompt displays before theaccess path is deleted. This prompt allows you tospecify that the source and object are to be deleted.

Synon/2E does not allow you to delete the accesspath if it is referenced by any other function oraccess path.

You must eliminate the references before you candelete the access path. You can do so bydetermining the usage of an access path.

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

Deleting an Access Path

BAP 5 -- 2 Building Access Paths

Page 3: 5 Delete

Determining the Usage of an Access Path

1. View the access path usages. Enter U next to theselected access path on the Edit File Details paneland press Enter.

The Display Model Usages panel displays with a listof functions and other access paths that referencethe selected access path.

2. View the functions that use the access path. TypeF next to the selected access path on the Edit FileDetails panel and press Enter.

The Display Model Usages panel appears with a listof the functions that reference the access path. Afunction built over an access path is an example of afunction using an access path.

For more information:on usages, refer to Generating and ImplementingApplications, Chapter 1, ‘‘Managing ModelObjects,’’ Impact Analysis topic and theSynon/2E Command Reference, YDSPMDLUSGcommand.

Determining the Usage of an Access Path

Building Access Paths BAP 5 -- 3

Page 4: 5 Delete

Determining the Usage of an Access Path

BAP 5 -- 4 Building Access Paths