Kernel 8.0 APIs Banner
Office of Information and Technology (OIT) Banner
[skip navigation]

$$PROD^XUPROD(): Production Vs. Test Account

Reference Type: Supported, Category: Signon/Security, ICR#: 4440

Description

The $$PROD^XUPROD extrinsic function is called by applications to check and see if the application is running in a Production or a Test account.

The Ask if Production Account [XU SID ASK] option on the Kernel Management Menu [XUKERNEL], asks if the current account is the Production account. It returns the following values:

The Startup PROD check [XU SID STARTUP] option can be scheduled for startup so that when TaskMan starts the SID is checked. The first check each day gets the current SID and compares it with the stored SID to see if they match.

NOTE: This API was released with Kernel Patch XU*8.0*284.

Format

  $$PROD^XUPROD([force])

Input Parameters

force:

(optional) The parameter value of 1 allows an application to force a full test.

Output

returns:

Returns a Boolean value:

  • True (1 or non-zero)—Production account, current SID is set as the Production SID.

  • False (zero)—Test account.