• Aucun résultat trouvé

Maintenance Examples Using MERGE Function

For each example that follows:

• The macro definitions updated are selected arbitrarily,

• Library A is assumed to reside on disk drive A, and library B on disk drive B.,

• Library A is assumed to be the existing user library, and library B the IBM-supplied maintenance update (new release),

• The techniques described can be applied by using only two disk drives.

The following examples illustrate several ways to update an existing library.

EXAMPLE lA: COPYING SELECTIVELY TO MERGE TWO LIBRARIES

If the majority of the macro definitions desired are in library A, and i t is desired to update macro definitions A2 and A3, selectively copy (merge) macro definitions B2 and B3 from IBM-supplied library B to library A.

Thus, when there are many more macro definitions in one library than the other, i t is faster to selectively copy to the library with the greatest number of entries" if there is enough space in the library being enlarged.

If there is not enough space in library A, the unwanted macro definitions A2 and A3 must first be deleted from library A, and library A condensed

before the transfer can be attempted.

A representation of the results of selectively copying macro definitions B2 and B3 from library B to library A follows:

Li brary A-- Al,

- ' - '

A8, A9, B2, B3 Library B-- Bl" B2, B3, B4, B5

Note that the macro definitions B2 and B3 are added to the end of the library updated (library A).

Maintenance Procedures

99-EXAMPLE lB: VARIATION OF SELECTIVE COPYIN; TO MERGE TWO LIBRARIES A variation of the technique described in Example 1A demonstrates the

capability of transferring in any direction. Thus, if the majority of macro definitions are in library B, and i t is desired to update macro definitions Al, A2, and A3, selectively copy macro definitions A8 and A9 from library A to library B.

A representation of selectively copying macro definitions A8 and A9 from library A to litrary B follows:

litrary A-- Al, A2, A3, A8, A9

Library B-- Bl, B2, B3, B4, B5, A8, A9

Note that macro definitions A8 and A9 are added to the end of the library updated (library B).

EXAMPLE 2A: DELETING UNWANTED ENTRIES FRON A LIBRARY AND MERGING LIBRARIES BY COPYING ONE TO THE OTHER

Assuming that the majority of macro definitions are in library A, an alternate method of accomplishing an update similar to that described in Example lA follows.

Delete macro definitions Bl, B4, and B5 from library B, and completly copy library B to library A. Thus, the IBM-supplied DELETESL book can delete all unwanted macro definitions from the source statement library, and the library transferred in its entirety.

A representation of the results of deleting macro definitions Bl, B4, and B5 from library B, and copying library B follows:

Li trary A-- Al,

- '

, A8, A9, B2, B3 Litrary B--

- '

B2, B3,

Note that library B is added to the end of library A, and that library A in Example lA is identical to library A in this example.

EXAMPLE 2B: VARIATION OF DELETING UNWANTED ENTRIES FROM A LIBRARY AND COPY! 00 (~'£RGI NG) ONE TO THE OTHER

A variation of the technique described in Example 2A that demonstrates the capability of transferring in any direction follows.

Thus, to add macro definitions A8 and A9 to library B, delete macro definitions Al, A2, and A3 in library A and then completely copy library A to litrary B. Again, the IBM-supplied DELETESL book can delete all

unwanted IBM-supplied macro definitions from the source statement library.

A representation of the results of deleting macro definitions Al, A2, and A3 from library A and copying library A to library B follows.

I i brary

A--- ' - '

, A8, A9

Library B-- Bl, B2, B3, B4, B5, A8, A9 .100 IBM S/360 DOS Sys. Gen. and Maint.

Note that user macro-definitions AS and A9 are added to the end of the library being updated (library B), and library B in Example lB is identical to library B in this example.

EXAMPLE 3: COPYING SELECTIVELY, MERGING TWO LIBRARIES TO CREATE A THIRD LIBRARY

If space is a problem, a third library called C can be created to be a comtination of selected macro definitions from both library A and library B. Thus, if the desired macro definitions in library A are AS and A9 (the user's macro definitions), and Bl, B2, and B3 in library B (IBM-supplied), then user macro definitions AS and A9 can be selectively copied (merged) from library A to library C, and IBM-supplied macro definitions Bl, B2, and B3 can be selectively copied (merged) from library B to library C. The advantage of this technique is that the need for a condense or reallocation

of an existing library is eliminated, and time is saved. However, the time required to initialize a third disk pack must be taken into consideration.

A representation of the results of selectively copying library A and library B (merging) to create library C follows:

l.ibrary A-- Al" A2, A3, AS, A9 Library B-- Bl, B2, B3, B4, B5 Library C-- Bl, B2, B3, A8, A9

Note that liorary C requires less space than if either library A or library B were merged with each other.

EXAM!> LE 4: DELETING UNWANTED ENTRIES FROM TWO LIBRARIES AND MERGING BOTH LIBRARIES TO CREATE A THIRD LIBRARY

A variation of selectively copying from two libraries to form a third library follows.

Tb retain user macro definitions AS and A9 in library A, and update IBM-supplied macro definitions Al, A2, and A3 in library A, delete Al, A2, and A3 from library A, and B4 and B5 from library B. Then completely copy

(merge) library A and library B to create a third library C.

A representation of the results of deleting unwanted macro definitions frorr library A and litrary B, and copying (merging) both libraries to create a third library C follows:

Library

A--"

- '

, AS, A9

Library B-- Bl, B2, B3,

- '

Litrary C-- Bl, B2, B3, AS, A9

Note that litrary C requires less space than if either library A or B were merged with each other. Also note that library C in Example 3 is identical to l i crary C in this exampl e.

Maintenance Procedures