How can I get parent process program name?

Hi:

I have 2 script on AIX server.
The child script is called by parent script.
For example:
The parent script full name is

/home/op/def/parent.spt

, which calls

/home/op/abc/child.spt

I want to get the parent program name with full path name (i.e. /home/op/def/parent.spt),
in /home/op/abc/child.spt.
It is because of both of them are not have the following statement:

#!/bin/ksh

it make the child script cannot get the parent process program name and path name via ps command.

Is there any other method to get the parent process program name?
If cannot , Is there any other method to get the parent process program name path name?

thank you very much

USE IT IN CHILD SCRIPT

PP_ID=`echo $PPID`
for PS_DT in `ps -ef`
do
PS_ID=`echo $PS_DT|tr -s " "|cut -d" " -f3`
if [ $PS_ID -eq $PP_ID ]; then
PS_NAME=`echo $PS_DT|tr -s " "|cut -d" " -f9`
echo $PS_NAME
exit 1
fi
done

/home/op/def/parent.spt

/home/op/abc/child.spt "`ps -ef|awk '$2=='$$'{print $NF}'`"

/home/op/abc/child.spt

echo "this is parent process name -> $1"

because of missing #!/bin/ksh, the process file name cannot found in ps output, so I want to find other method to do so.