$Cms: Difference between revisions

From m204wiki
Jump to navigation Jump to search
m (misc formatting)
m (update link)
 
Line 22: Line 22:
==Products authorizing {{PAGENAMEE}}==  
==Products authorizing {{PAGENAMEE}}==  
<ul class="smallAndTightList">
<ul class="smallAndTightList">
<li>[[List of $functions|Sirius functions]]</li>
<li>[[Release notes for Model 204 version 7.5#Former Sirius $functions|Sirius Functions]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Fast/Unload User Language Interface]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>
<li>[[Media:JoclrNew.pdf|Janus Open Client]]</li>

Latest revision as of 17:53, 24 January 2018

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

Products authorizing $Cms