SYSPROCESSID Function


SYSPROCESSID Function

Returns the process id of the current process

Category: Special

Syntax

SYSPROCESSID ()

Details

The SYSPROCESSID function returns the 32-character hexadecimal id of the current process. This id can be passed to the SYSPROCESSNAME function to obtain the name of the current process.

Examples

Example 1: Using a Data Step

The following DATA step writes the current process id to the SAS log:

 data _null_;     id=sysprocessid();     put id;  run; 

Example 2: Using SAS Macro Language

The following SAS Macro Language code writes the current process id to the SAS log:

 %let id=%sysfunc(sysprocessid());  %put &id; 

See Also

Function:

  • 'SYSPROCESSNAME Function' on page 850




SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
SAS 9.1 Language Reference Dictionary, Volumes 1, 2 and 3
ISBN: N/A
EAN: N/A
Year: 2004
Pages: 704

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net