I work for a training company, and as such we run a suite of programs to set up course profiles and libraries. I need some way of setting PDM settings (such as JOBD and UserOptionsFile) from within a batch program. Any ideas??
I work for a training company, and as such we run a suite of programs to set up course profiles and libraries. I need some way of setting PDM settings (such as JOBD and UserOptionsFile) from within a batch program. Any ideas??
Rob, "I need some way of setting PDM settings (such as JOBD and UserOptionsFile) from within a batch program." You may be SOL on this. The settings are stored in an object in QSYS by the same name as the user profile, but with a type of 0E and subtype of C4. I believe this combination is referred to as *INTPRF for interactive profile, but that special name is not useable on commands which ask for an object type. There is no API interface to this object, that I know of anyway. But you can see how they are stored by doing this: DMPSYSOBJ OBJ(username) CONTEXT(QSYS) TYPE(0E) SUBTYPE(C4) At security levels 30 or below, you could in theory manipulate the information using MI or even RPG IV by using MI builtins to resolve to the above object. But it would be "unsupported" at best. Since CRTDUPOBJ does not allow *INTPRF, you also can't easily have various templates that you copy over the object after creating a profile. One option may be to create an emulator macro which automates stepping a profile thru starting PDM and setting the options you want. But it would still take signing on by that profile and invoking the macro. It would also be possible to use the Virtual Terminal APIs to do this in batch from the 400, but that is not a task for the feint of heart... Doug
Hi Rob, With the information provided by Doug you could alter this code written by Gene Gaunt to make the changes for you: http://207.212.90.55/MCForums.nsf/af.../34a0a8fbda45f 41e88256811006279d0?OpenDocument As Doug pointed out this is not a supported interface so all possible precautions should be taken if you decide to try it out. Best regards, Carsten Flensburg
I wonder where PDM gets the info, and WHEN ??? Just a thought.. bobh