Deleting multiple 2E Model Lists

Document ID : KB000044656
Last Modified Date : 14/02/2018
Show Technical Document Details

Summary:  

You can work with all the model lists in a 2E model by running command YWRKMDLLST but deleting a large number of model lists using option 4 or YDLTMDLLST is time-consuming and cumbersome. What follows is a better way to do this.

 

Instructions:  

2E model lists are members of model file YMDLLSTRFP so you could build a member list of model lists with this 2E Toolkit command:

YBLDMBRLST FILE(model/YMDLLSTRFP) FILEATR(*PHY) MBRLST(library/MDLLSTS)

Then you can edit the member list so that it contains only the model lists you want to delete.

You can edit the list with…

YEDTMBRLST MBRLST(library/MDLLSTS)

You could also filter it with...

YFLTMBRLST MBRLST(library/MDLLSTS)…

Now the member list library/YMDLLSTS contains only model lists that you want to delete so you can delete them with...

YEXCMBRLST RQSDTA(' YDLTMDLLST @L/@M ') MBRLST(library/MDLLSTS)