parse source . how . "how" may be one of COMMAND, FUNCTION, SUBROUTINE.
If you're not opposed to modifying SYSPROF, you could call PROFILE as a function or subroutine from there. Don Russell Tom Cluster wrote:
Is there a way for me to know, from within PROFILE EXEC, if I've been invoked by the logon process, as opposed to someone typing PROFILE?- Tom. Tom Cluster County of Sonoma Santa Rosa, CA(707) 565-3384 (Tuesdays and Wednesdays only)