Date: Wed, 15 Jul 2009 11:49:18 -0400
Reply-To: "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: "Fehd, Ronald J. (CDC/CCHIS/NCPHI)" <rjf2@CDC.GOV>
Subject: Re: A Program searching for its Roots
Content-Type: text/plain; charset=us-ascii
> From: Dirk Van Krunckelsven
> Sent: Wednesday, July 15, 2009 4:06 AM
> Subject: A Program searching for its Roots
> Hi guys,
> I want a program with knowledge of its origin. Desperate to know its
> roots, it's place inside its universe... Pondering on its
> genesis... :)
> I'd like to know two things.
Describe the entity: "a program".
> 1. Can a program that is running determine what it is named?
> 1. Can a program communicate its name?
> 2. Can a program that is running determine whether it is running from
> itself or is being called by another program?
that depends on
1. how smart the programmer is
2. where you want the information.
in my work I differentiate my log notes with integer suffixes
which indicate level the program identification:
%Put Note1: module MyModule ending;
%Put Note2: routine MyRoutine ending;
%Put Note3: subroutine MySubroutine ending;
Ron Fehd the module/routine/subroutine maven CDC Atlanta GA USA RJF2
at cdc dot gov