LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous (more recent) messageNext (less recent) messagePrevious (more recent) in topicNext (less recent) in topicPrevious (more recent) by same authorNext (less recent) by same authorPrevious page (August 2000, week 2)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Thu, 10 Aug 2000 14:27:56 EDT
Reply-To:     Bernard Tremblay <imaginasys@HOTMAIL.COM>
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Bernard Tremblay <imaginasys@HOTMAIL.COM>
Subject:      Re: Determining PID's for a SAS job in UNIX
Comments: cc: jdesho01@SPRINTSPECTRUM.COM
Content-Type: text/plain; charset=iso-8859-1; format=flowed

Hi Joe,

You haven't specified wich 'flavor' of Unix you are using. But I know that, on Solaris, the hex value of the PID was part of the Work directory that SAS create. SAS has a C program called 'cleanwork' that scans for work directories on a disk. It extract the PID from the work name and then checks if the process is still alive, if not then it delete the work directory. It should be installed in your "!SASROOT/utilities" directory (or you may find it on the SAS web site). Take a look and find out your answer coded in C right there!

Good luck,

\\\|/// \\ - - // ( @ @ ) +-----oOOo-(_)-oOOo--+-----------------------------------+ | Bernard Tremblay | | | CSST | Tel: (418) 528-9313 | | | Fax: (418) 528-1493 | | | Int: Bernard.Tremblay@csst.qc.ca | +----------------------------+---------------------------+ | Imaginasys enr | Res: (418) 658-1411 | | | Int: bertrem@videotron.ca | | | Hot: imaginasys@hotmail.com | +--------------Oooo--+-----------------------------------+ oooO ( ) ( ) ) / \ ( (_/ \_) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >From: "DeShon, Joe" <jdesho01@SPRINTSPECTRUM.COM> >Reply-To: "DeShon, Joe" <jdesho01@SPRINTSPECTRUM.COM> >To: SAS-L@LISTSERV.UGA.EDU >Subject: Determining PID's for a SAS job in UNIX >Date: Thu, 10 Aug 2000 12:53:23 -0500 > >Our SAS UNIX documentation says that SAS creates work files based on the >PID. Specifically: > > "This subdirectory (the WORK data library) is usually named SAS_workcode >where code is a 12-character code based on the process ID of the SAS >session" > >For example, on our system we have a work directory named >SAS_work53880000FA8A_itp00b006 > >Is there a way to figure out what the PID is from that name? I assume the >code is 53880000FA8A >but that isn't the hexidecimal representation of any PID's that I know of. >Maybe there's some other stuff embedded in there. > >Or ... (and here's what I'm really asking) ... is there a way to figure out >the PID associated with any file on UNIX, whether it's a SAS dataset or >not. >(Okay, I couldn't ask that one first without being accused of asking an >off-topic question. But I'm really more interested in SAS work files.) > >Anybody with a clue? > >Joe DeShon >Program Manager, Database Marketing >Market Insights Group >Sprint PCS >4900 Main >Kansas City MO 64112 >Work: (816) 559-3527 >PCS: (816) 210-0950 >Fax: (816) 559-3691 >email: jdesho01@sprintspectrum.com

________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com


Back to: Top of message | Previous page | Main SAS-L page