On 1/10/07, Kris Buelens <[EMAIL PROTECTED]> wrote:

You'd need to fiddle with the user's PROFILE EXEC to make it run the EXEC.

I guess Neale would wish you things that involve a big black dog ;-)

If trying to be helpful involves messing with the user's PROFILE EXEC,
to me that means you need to rethink what you're trying to achieve.
Depending on the complexity of the user's PROFILE EXEC your trick may
or may not work. Even when you add the code to handle the case when
the DEFINE does not work. And what are you going to do after the
program finished? Change it back to something the old value or leave
it like this? Would it be an option to set the directory default for
those users?

If you really have to do it like this, I would consider to establish a
safe environment by a rename of the original PROFILE and creation of a
new one that only does its things, and rename back again after you're
done. And prepare to take calls from users who lost their PROFILE EXEC
without knowing why..

If you could plan well ahead, you might be able to add logic to the
SYSPROF to recognize various situations and properly deal with them
(through some exits).

Rob

Reply via email to