$Cms
Determine if online is running under CMS
Note: Many $functions have been deprecated in favor of Object Oriented methods. There is currently no OO equivalent for the $Cms function.
The $Cms function determines if the Model 204 Online is running under CMS.
Syntax
%cms = $Cms
$Cms accepts no arguments; it returns a 1 if the Online is running under CMS, or it returns a 0 otherwise. n
Usage notes
$Cms can be used before running any operating system specific code. For example, the following code fragment sets global variable NEXTPROC
to PROC.CMS
if running under CMS, or it sets NEXTPROC
to PROC.MVS
, otherwise:
if $cms then %rc = $setg('NEXTPROC', 'PROC.CMS') else %rc = $setg('NEXTPROC', 'PROC.MVS') end if