Chapter Contents

Previous

Next
syslevel

syslevel



Get Operating System Information

Portability: SAS/C extension


SYNOPSIS
DESCRIPTION
RETURN VALUE
CAUTION
EXAMPLE


SYNOPSIS

#include <lclib.h>

char *syslevel(void);


DESCRIPTION

syslevel gets the operating system version number, release number, modification level, and submodification level stored in bytes 10 through 13 of the environment descriptor block.

A null character is stored for any piece of information that is not meaningful on the current system.


RETURN VALUE

syslevel returns a pointer to the character sequence containing the operating system version number, release number, modification level, and submodification level.

The type of information returned by syslevel is site-dependent. An example of typical information provided under OS/390 is the version and release number of OS/390. Under CMS, only the release number is meaningful; this is the release of the VM control program (CP).


CAUTION

See "Caution" under The L$UENVR Routine.


EXAMPLE

syslevel is illustrated in the example for envlevel .


Chapter Contents

Previous

Next

Top of Page

Copyright © 2001 by SAS Institute Inc., Cary, NC, USA. All rights reserved.