$Cms

From m204wiki
Revision as of 17:35, 28 January 2011 by 198.242.244.47 (talk) (Created page with "{{DISPLAYTITLE:$Cms}} <span class="pageSubtitle"><section begin="desc" />Determine if online is running under CMS<section end="desc" /></span> <p class="warning">Most Sirius $fu...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

<section begin="desc" />Determine if online is running under CMS<section end="desc" />

Most Sirius $functions have been deprecated in favor of Object Oriented methods. The OO equivalent for the $Cms function is to be entered.

This function can be used to determine if the online is running under CMS.

The $Cms function accepts no arguments and returns either a 1 if the online is running under CMS or a 0 otherwise.

Syntax

<section begin="syntax" /> %CMS = $Cms <section end="syntax" />

$Cms Function

%CMS is set to either 0 or 1.


This function can be used to test if running under CMS before running any operating system specific code. For example, the program

IF $Cms THEN %RC = $SETG('NEXTPROC', 'PROC.CMS') ELSE %RC = $SETG('NEXTPROC', 'PROC.MVS') END IF

would set global variable NEXTPROC to 'PROC.CMS' if running under CMS and to 'PROC.MVS', otherwise.

Products authorizing $Cms