If you're looking at a list of objects or members in PDM with WROOBJPDM/WRKMBRPDM, you can create an option that will do "CHGCURLIB &O". This will change your current library to the library the object/member is in.
CRPence <crp@xxxxxxxxxxxxxxxxxxxx> 2008-03-12 00:28 >>>
I have never found, but never asked. So maybe someone knows
something exists... Is there any /substitution variable/ available
enables an option defined like CC="ChgCurLib &±" to set the current
library to the name of the library in which the object resides [for OBJ
& MBR lists] *or* to the name of the library in the list [for a LIB
The "CHGCURLIB &L" will set my *CURLIB to QSYS when using WRKLIBPDM.
That outcome is not very helpful; in fact, very dangerous for me.
Seems daft to create two CHGCURLIB options to remember both what they
are and when\where to use them, or to have to write an alternate
or program to accept both &L, &O [and &T or maybe &B] to figure out