#include 
main()
{
   int childpid,  /* child process id                            */
       rc;        /* return code                                 */

   if ((childpid = fork()) == -1
   {
      fprintf(stderr, "Can't fork0);
      exit(1);
   }
   else if (childpid == 0)
   {
         /* this is the child process; execute the SAS program   */
      execlp("sas", "sas", "program.sas", NULL);
   }
   else
   {
      

      /* this is the parent process                              */
   printf("waiting for sas process %d to complete0, childpid);
   wait(&rc);
   rc=rc/256;
   printf("sas process completed with rc=%d0, rc);
   }
}