Sample program to create REBIND subcommands for lists of plans and packages
If you cannot use asterisks to identify a list of packages or plans that you want to rebind, you might be able to create the needed REBIND subcommands automatically, by using the sample program DSNTIAUL.
One situation in which this technique might be useful is when a resource becomes unavailable during a rebind of many plans or packages. Db2 normally terminates the rebind and does not rebind the remaining plans or packages. Later, however, you might want to rebind only the objects that remain to be rebound. You can build REBIND subcommands for the remaining plans or packages by using DSNTIAUL to select the plans or packages from the Db2 catalog and to create the REBIND subcommands. You can then submit the subcommands through the DSN command processor, as usual.
You might first need to edit the output from DSNTIAUL so that DSN can accept it as input. The CLIST DSNTEDIT can perform much of that task for you.