{"id":3672,"date":"2019-02-12T16:09:35","date_gmt":"2019-02-12T16:09:35","guid":{"rendered":"https:\/\/cyflexdoc.wpengine.com\/usage-help-manual\/19-variables-and-computations\/garr\/"},"modified":"2025-07-28T12:02:07","modified_gmt":"2025-07-28T17:02:07","slug":"garr","status":"publish","type":"page","link":"https:\/\/cyflex.com\/index.php\/usage-help-manual\/2-variables-and-computations\/garr\/","title":{"rendered":"garr"},"content":{"rendered":"<div>\n<h3>Purpose:<\/h3>\n<\/div>\n<dl>\n<dd>\n<p>Display array variables from shared memory with options to format output for quiet mode, units, and delimiters.<\/p>\n<\/dd>\n<\/dl>\n<h3>Enter:<\/h3>\n<dl>\n<dd>\n<p><strong>garr<\/strong> [-q] [-u] [-d delim] [-h] [array] [:enum_str]<\/p>\n<p>or<\/p>\n<p><strong>garr<\/strong> [array] [?int_var]<\/p>\n<\/dd>\n<\/dl>\n<h3>Where:<\/h3>\n<dl>\n<dd>\n<div>\n<table style=\"width: 94.1688%; height: 676px;\" cellspacing=\"0\" cellpadding=\"0\">\n<colgroup>\n<col \/>\n<col \/> <\/colgroup>\n<tbody>\n<tr style=\"height: 56px;\">\n<td style=\"width: 17.6497%; height: 56px;\">\n<p>:<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 56px;\">\n<p>The : symbol designates that the following index is either a constant integer or an enum defined in the array_specs file.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 17.6497%; height: 56px;\">\n<p>?<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 56px;\">\n<p>The ? symbol designates that the following string is the label of an integer variable whose value will be used as an index.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 17.6497%; height: 56px;\">\n<p>-q<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 56px;\">\n<p>Optional. Specify -q (quiet) to only print values.\u00a0<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 17.6497%; height: 56px;\">\n<p>-u<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 56px;\">\n<p>Optional. Specify -u to include units in the output.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 120px;\">\n<td style=\"width: 17.6497%; height: 120px;\">\n<p>-d delim<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 120px;\">\n<p>Optional. -Specify d delimiter to separate the values in quiet mode. Delimiter options are:<\/p>\n<ul>\n<li>c is &#8216;,&#8217;<\/li>\n<li>t is tab<\/li>\n<li>s is space<\/li>\n<li>n (default) is newline<\/li>\n<\/ul>\n<\/td>\n<\/tr>\n<tr style=\"height: 52px;\">\n<td style=\"width: 17.6497%; height: 52px;\">\n<p>array<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 52px;\">\n<p>Optional. Specify the array variable name.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 17.6497%; height: 56px;\">\n<p>-h<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 56px;\">\n<p>Optional. Specify -h to display help.<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 17.6497%; height: 56px;\">\n<p>:enum_str<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 56px;\">\n<p>Optional. Specify the colon symbol followed by an enum string or integer to for the array index.\u00a0<\/p>\n<\/td>\n<\/tr>\n<tr style=\"height: 56px;\">\n<td style=\"width: 17.6497%; height: 56px;\">\n<p>?int_var<\/p>\n<\/td>\n<td style=\"width: 82.1338%; height: 56px;\">\n<p>Optional. Specify the question mark symbol followed by an integer variable whose value will be used as an index.<\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/div>\n<\/dd>\n<\/dl>\n<h3>Example:<\/h3>\n<dl>\n<dd>\n<p><strong>garr<\/strong><br \/>\nThe above command displays all the array variables. It displays only the labels of their associated maximum range for each dimension. No values will be displayed.<\/p>\n<p><strong>garr<\/strong> my_vrbl<br \/>\nThe above displays all the values for array variable &lt;my_vrbl&gt;<\/p>\n<p><strong>garr<\/strong> my_vrbl:TC15<br \/>\nThe above displays all the values for array variable &lt;my_vrbl&gt; that are associated with enum &lt;TC15&gt;.<\/p>\n<p><strong>garr<\/strong> my_vrbl:TC15:STATUS<br \/>\nThe above displays all the values for array variable `my_vrbl` that are associated with enums &lt;TC15&gt; and &lt;STATUS&gt;.<\/p>\n<p><strong>garr<\/strong> my_vrbl?indx1?indx2<br \/>\nThe above displays all the values for array variable &lt;my_vrbl&gt; that are associated with the values in integer variables &lt;indx1&gt; and &lt;indx2&gt;<\/p>\n<\/dd>\n<\/dl>\n<h3>Notes:<\/h3>\n<dl>\n<dd>\n<p>If an enum string is entered as a dash, then any element associated with that enum will NOT BE DISPLAYED.<\/p>\n<\/dd>\n<\/dl>\n<h3>See Also:<\/h3>\n<dl>\n<dd>\n<p><a href=\"\/wp-content\/uploads\/CyFlex-Variables-Units-and-Computed-Expressions.pdf\">CyFlex Variables, Units, and Computed Expressions<\/a>, <a href=\"\/wp-content\/uploads\/Array-Variables.pdf\">Array Variables<\/a><\/p>\n<\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>Purpose: Display array variables from shared memory with options to format output for quiet mode, units, and delimiters. Enter: garr [-q] [-u] [-d delim] [-h] [array] [:enum_str] or garr [array] [?int_var] Where: : The : symbol designates that the following index is either a constant integer or an enum defined in the array_specs file. ? [&hellip;]<\/p>\n","protected":false},"author":47,"featured_media":0,"parent":1966,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-3672","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3672","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/users\/47"}],"replies":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/comments?post=3672"}],"version-history":[{"count":0,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/3672\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/pages\/1966"}],"wp:attachment":[{"href":"https:\/\/cyflex.com\/index.php\/wp-json\/wp\/v2\/media?parent=3672"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}