Previous Topic: Using Session Lists with Model List CommandsNext Topic: Referencing Model Object Lists in Commands


Example

Suppose you need to regenerate all external functions that use model objects contained in the session list. You can produce a list of these functions by using the Display Model Usages (YDSPMDLUSG) command. The following command creates a model object list (list-name) consisting of all model objects that use any object contained on your default model list (*MDLPRF), up to and including the first external function:

YDSPMDLUSG  MDLLST(*MDLPRF)+
 OUTPUT(*MDLLST)+
 OUTMDLLST(list-name)+
 SCOPE(*EXTFUN)

You can then convert the resulting output list to a job list for generation and compilation using the Convert Model List (YCVTMDLLST) command.

The following are more examples of ways you can use session lists with model list commands:

For more information on model list commands, see the Commands to Manipulate Model Object Lists section in this chapter, and the CA 2E Command Reference Guide.