Previous Page | Next Page

Automatic Macro Variables

SYSSTARTID Automatic Macro Variable



Contains the ID generated from the last STARTSAS statement.
Type: Automatic macro variable (read only)
Default: null

Details
Example
Using SYSSTARTID to Display the SAS Process ID from the Most Recent STARTSAS Statement

Details

The ID is a 32-character hexadecimal string that can be passed to the WAITSAS statement or the ENDSAS statement. The default value is null.


Example


Example 1: Using SYSSTARTID to Display the SAS Process ID from the Most Recent STARTSAS Statement

Submit the following code from the SAS process in which you have submitted the most recent STARTSAS statement to write the value of the SYSSTARTID variable to the SAS log:

%put &sysstartid

A process ID value, such as the following, is written to the SAS log:

41D20425B89FCED94036000000000000

Previous Page | Next Page | Top of Page