{"id":7116,"date":"2018-11-27T18:01:20","date_gmt":"2018-11-27T18:01:20","guid":{"rendered":"https:\/\/alt2.minisoft.com\/support\/?p=7116"},"modified":"2022-05-13T11:35:24","modified_gmt":"2022-05-13T18:35:24","slug":"predefined-queue-monitor-variables","status":"publish","type":"post","link":"https:\/\/www.minisoft.com\/support\/predefined-queue-monitor-variables\/","title":{"rendered":"Predefined Queue Monitor Variables"},"content":{"rendered":"<p>For more on the iSeries, please consult the following resource:&nbsp;<a href=\"\/support\/index.php\/as400-roadmap\/\">iSeries (AS\/400) Roadmap<\/a><\/p>\n<p>For more information on predefined queue monitor variables, view the following resource: <a href=\"https:\/\/www.ibm.com\/docs\/en\/i\/7.3?topic=classes-print-object-attributes\">Print Object Attributes<\/a><\/p>\n<p>Queue Monitor variables are defined in the Director Toolkit. They can be accessed in a project by defining a Queue Monitor variable and giving it the same name as the variable defined in the Director Toolkit.<\/p>\n<h2><strong>Setting AS400 Spool File Attributes<\/strong><\/h2>\n<p>You can get the JOBUSER, USERDATA, and other fields from the incoming spool file by creating a \u201cQueue Monitor Variable\u201d with one of the pre-defined values. (From the &#8220;Input Variables&#8221; table below)<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ1.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7121\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ1.png\" alt=\"\" width=\"648\" height=\"172\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ1.png 648w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ1-300x80.png 300w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ1-150x40.png 150w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ1-250x66.png 250w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ1-550x146.png 550w\" sizes=\"(max-width: 648px) 100vw, 648px\" \/><\/a><\/p>\n<p>You can assign a string to one of attributes of the spool file(s) created by the project by creating Global Variables using the appropriate string. (From the &#8220;Output Variables&#8221; table below)<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7122\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ2.png\" alt=\"\" width=\"553\" height=\"186\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ2.png 553w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ2-300x101.png 300w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ2-150x50.png 150w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ2-250x84.png 250w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ2-550x185.png 550w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ2-535x180.png 535w\" sizes=\"(max-width: 553px) 100vw, 553px\" \/><\/a><\/p>\n<p>Global variables are set to specific values using an action in a procedure.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ3.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7123\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ3.png\" alt=\"\" width=\"290\" height=\"114\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ3.png 290w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ3-150x59.png 150w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/InputQ3-250x98.png 250w\" sizes=\"(max-width: 290px) 100vw, 290px\" \/><\/a><\/p>\n<h3>Setting up an eDIRECT process for output<\/h3>\n<p>The output type must be eDIRECT Output and not printer output in the Local Toolkit.<\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7131\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra.png\" alt=\"\" width=\"407\" height=\"79\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra.png 407w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra-300x58.png 300w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra-150x29.png 150w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra-250x49.png 250w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra-400x79.png 400w\" sizes=\"(max-width: 407px) 100vw, 407px\" \/><\/a><\/p>\n<p><a href=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra2.png\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7132\" src=\"https:\/\/alt2.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra2.png\" alt=\"\" width=\"239\" height=\"87\" srcset=\"https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra2.png 239w, https:\/\/www.minisoft.com\/support\/wp-content\/uploads\/2018\/11\/qm-extra2-150x55.png 150w\" sizes=\"(max-width: 239px) 100vw, 239px\" \/><\/a><\/p>\n<h2><strong>Predefined Queue Monitor Variables<\/strong><\/h2>\n<p><strong>Always:<\/strong><br \/>\n&#8220;datafilename&#8221;<br \/>\n&#8220;datafileext&#8221;<br \/>\n&#8220;project&#8221;<\/p>\n<p><strong>LocalQueueMonitor:<\/strong><br \/>\n&#8220;directory&#8221;<\/p>\n<p><strong>Output Only:<\/strong><br \/>\n&#8220;ProjectStatus&#8221;<br \/>\n&#8220;QMComponentFiles&#8221;<\/p>\n<p><strong>AS400 Only:<\/strong><br \/>\nqueue<br \/>\niSeries_COPIES<br \/>\niSeries_USERDATA<br \/>\niSeries_USERDEFDATA<br \/>\niSeries_SAVE<br \/>\niSeries_JOBUSER<br \/>\niSeries_JOBNAME<br \/>\niSeries_SPFNAME<br \/>\niSeries_SPLFSTATUS<br \/>\niSeries_FILENUMBER<br \/>\niSeries_JOBNUMBER<br \/>\niSeries_FORMTYPE<br \/>\niSeries_AUX_POOL<\/p>\n<p><strong><em>Notes:<\/em><\/strong><\/p>\n<p>\u2022 When ProjectStatus is set to &#8220;abort&#8221; an exception is thrown. If an <a href=\"\/support\/index.php\/director-alerts\/\">AlertQueue<\/a> is set up to catch these errors, note that it will be activated with a Priority of 0, so unless your alert queue is handling level 0 messages it should not affect it.<\/p>\n<p>\u2022 A list of files can be sent back to the Queue Monitor through a global variable named &#8220;QMComponentFiles&#8221;. Those files listed will have the same disposition as the main data file. (A comma delimited string of file names.)<\/p>\n<p><em>Example<\/em><br \/>\n0000000088 (12\/1\/16 1:19:02 PM) iSeries_SPFNAME = COLLATE<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) iSeries_USERDATA = PK10RERP<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) iSeries_JOBNAME = SDBLACKBUB<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) datafileext =<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) queue = \/QSYS.LIB\/QUSRSYS.LIB\/MINISOFT.OUTQ<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) iSeries_SAVE = *YES<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) iSeries_JOBUSER = SDBLACKBUR<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) iSeries_COPIES = 1<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) datafilename = COLLATE<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) iSeries_USERDEFDATA = *NONE<br \/>\n0000000088 (12\/1\/16 1:19:02 PM) iSeries_SPLFSTATUS = *READY<\/p>\n<p><strong>Input Variables:<\/strong><br \/>\n( &#8220;iSeries_COPIES&#8221;);<br \/>\n( &#8220;iSeries_USERDATA&#8221;);<br \/>\n( &#8220;iSeries_USERDEFDATA&#8221;);<br \/>\n( &#8220;iSeries_SAVE&#8221;);<br \/>\n( &#8220;iSeries_JOBUSER&#8221;);<br \/>\n( &#8220;iSeries_JOBNAME&#8221;);<br \/>\n( &#8220;iSeries_SPFNAME&#8221;);<br \/>\n( &#8220;iSeries_SPLFSTATUS&#8221;);<br \/>\n( &#8220;iSeries_FILENUMBER&#8221;);<br \/>\n( &#8220;iSeries_JOBNUMBER&#8221;);<br \/>\n( &#8220;iSeries_FORMTYPE&#8221;);<br \/>\n( &#8220;iSeries_AUX_POOL&#8221;);<\/p>\n<p><strong>Output Variables:<\/strong><br \/>\n(&#8220;ATTR_USERDATA&#8221;);<br \/>\n(&#8220;ATTR_USRDEFDATA&#8221;);<br \/>\n(&#8220;ATTR_SAVE&#8221;);<br \/>\n(&#8220;ATTR_HOLD&#8221;);<br \/>\n(&#8220;ATTR_FORMTYPE&#8221;);<br \/>\n(&#8220;ATTR_SCHEDULE&#8221;);<\/p>\n","protected":false},"excerpt":{"rendered":"<p>For more on the iSeries, please consult the following resource:&nbsp;iSeries (AS\/400) Roadmap For more information on predefined queue monitor variables, view the following resource: Print Object Attributes Queue Monitor variables are defined in the Director Toolkit. They can be accessed in a project by defining a Queue Monitor variable and giving it the same name [&hellip;]<\/p>\n","protected":false},"author":75,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[186],"tags":[81,168,779],"_links":{"self":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7116"}],"collection":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/users\/75"}],"replies":[{"embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/comments?post=7116"}],"version-history":[{"count":9,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7116\/revisions"}],"predecessor-version":[{"id":10334,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/posts\/7116\/revisions\/10334"}],"wp:attachment":[{"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/media?parent=7116"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/categories?post=7116"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.minisoft.com\/support\/wp-json\/wp\/v2\/tags?post=7116"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}