Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Tag

Description

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="1c7b7f62e182d33b-f151f81b-405a4080-a35ea7ab-9c70aa2a7083598d6fb5bacb"><ac:plain-text-body><![CDATA[

@VALUE[<param>]

Replace the tag by
]]></ac:plain-text-body></ac:structured-macro>
Example:? in the statement and set the value of the prepared parameter to the value of the MIB Explorer variable with name <param>.

Code Block
SELECT ID FROM MXP.MXP_MONITOR WHERE NAME = @VALUE\[NAME\]

will be rendered to

Code Block
SELECT ID FROM MXP.MXP_MONITOR WHERE NAME = ?

where ? is assigned with the value of the MIB Explorer variable NAME when the statement is being executed. <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="527fb052-e8a6-4627-b2d5-405aa7f9a18d"><ac:plain-text-body><![CDATA[

@INSERT[<param>]

Replace the tag by the value of MIB Explorer variable with name <param>
]]></ac:plain-text-body></ac:structured-macro>

Example:

Code Block
SELECT ID FROM MXP.MXP_MONITOR WHERE NAME = '@INSERT\[NAME\]'

will be rendered to

Code Block
SELECT ID FROM MXP.MXP_MONITOR WHERE NAME = 'MyMonitor'

if the variable NAME has the string value MyMonitor.

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f7d9148c-29da-41d1-9bf3-ba96e7525176"><ac:plain-text-body><![CDATA[

@USE[<statementName>]

Replace the tag with the rendered content of the statement with name
]]></ac:plain-text-body></ac:structured-macro>
Example :<statementName> of the same context.

Example:

Code Block
<statement name="select.id">

 \\
SELECT ID

 \\
</statement>

 \\
<statement name="select.monitor.id.by.name">

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="0458642d-279f-46fb-916d-30beb9f1aed3"><ac:plain-text-body><![CDATA[
 \\
@USE[select.id] FROM MXP.MXP_MONITOR WHERE NAME = @VALUE[NAME]

]]></ac:plain-text-body></ac:structured-macro>
</statement>will be rendered toSELECT ID FROM
 \\
</statement>

will be rendered to

Code Block
SELECT ID FROM MXP.MXP_MONITOR WHERE NAME = 'MyMonitor'

if the variableNAME variable NAME has the string value MyMonitor.

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="49614ceb-4a89-4d43-98c9-e6761ae6ef22"><ac:plain-text-body><![CDATA[

@IF[<stmt>,<test>,<value>..]

Replace the tag with the statement with name
]]></ac:plain-text-body></ac:structured-macro>
Example: <stmt> if the condition <test> is true for the MIB Explorer variable references <value1> through <valueN>. The supported tests are listed in table Table 16 on page 144.

Example:

Code Block
<statement name="monitor.dataset.by.id">

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="7d93cd83-143b-4b0b-a9aa-66ba62fed4c4"><ac:plain-text-body><![CDATA[SELECT * FROM
 \\
SELECT * FROM MXP.MXP_MONITORDATASET WHERE MONITOR_ID = @VALUE\[ID
]
]]></ac:plain-text-body></ac:structured-macro>
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8b008837-b110-4f04-b7d7-be0e6d29d994"><ac:plain-text-body><![CDATA[@IF
\] \\
@IF\[and.nameOrDataType,not-null,NAME,DATATYPE
]
]]></ac:plain-text-body></ac:structured-macro>
ORDER BY
\] \\
ORDER BY MONITOR_ID,DATATYPE

 \\
</statement>

 \\
<statement name="and.nameOrDataType">

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="4c668d43-0a51-4fd9-92b6-b91295c2cce5"><ac:plain-text-body><![CDATA[AND (NAME = @VALUE[NAME] OR DATATYPE = @VALUE[DATATYPE])
]]></ac:plain-text-body></ac:structured-macro>
</statement>will be rendered toSELECT * FROM
 \\
AND (NAME = @VALUE\[NAME\] OR DATATYPE = @VALUE\[DATATYPE\]) \\
</statement>

will be rendered to

Code Block
SELECT * FROM MXP.MXP_MONITORDATASET WHERE MONITOR_ID = ? AND (NAME = ? OR DATATYPE = ?) ORDER BY MONITOR_ID,DATATYPE

if DATATYPEif the MIB Explorer variablesNAME variables NAME and DATATYPE are not null.

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="8ae2cdbb20c6ff86-75685bfa-486a41d0-88d0aad0-65a750f3640be0869efec47e"><ac:plain-text-body><![CDATA[

@IFELSE[<stmtTrue>, <stmtFalse>,<test>, <value>..]

Replace the tag with the statement with name
]]></ac:plain-text-body></ac:structured-macro>
Example:<stmtTrue> if the condition <test> is true for the MIB Explorer variable references <value1> through <valueN>. Otherwise, replace the tag with the statement with name <stmtFalse>. The supported tests are listed in table Table 16 on page 144. <statement name="monitor.dataset.by.id">
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="f163602ca5418b4f-6081b382-463c4b79-899d80b1-e8c2a49b8d27ec7bd741e90c"><ac:plain-text-body><![CDATA[SELECT * FROM MXP.MXP_MONITORDATASET WHERE MONITOR_ID = @VALUE[ID]
]]></ac:plain-text-body></ac:structured-macro>
<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="46b504ca4fa53ea8-88c0edfd-459d466a-882ea581-c96472be8db4584fe019bf20"><ac:plain-text-body><![CDATA[@IFELSE[dataTypeNotNull,dataTypeNull,not-null,DATATYPE]
]]></ac:plain-text-body></ac:structured-macro>
</statement>
<statement name="dataTypeNull">
AND DATATYPE IS NULL
</statement>
<statement name="dataTypeNotNull">
AND DATATYPE IS NOT NULL
</statement>will be rendered toSELECT * FROM MXP.MXP_MONITORDATASET WHERE MONITOR_ID = ? AND DATATYPE IS NOT NULLif the MIB Explorer variablesDATATYPE is not null. Otherwise, the statement would be rendered as: SELECT * FROM MXP.MXP_MONITORDATASET WHERE MONITOR_ID = ? AND DATATYPE IS NULL