<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.commander4j.com/index.php?action=history&amp;feed=atom&amp;title=Label_Fields</id>
	<title>Label Fields - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.commander4j.com/index.php?action=history&amp;feed=atom&amp;title=Label_Fields"/>
	<link rel="alternate" type="text/html" href="https://wiki.commander4j.com/index.php?title=Label_Fields&amp;action=history"/>
	<updated>2026-10-16T02:03:05Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.commander4j.com/index.php?title=Label_Fields&amp;diff=1972&amp;oldid=prev</id>
		<title>Dgarratt: Updated by push_wiki.py</title>
		<link rel="alternate" type="text/html" href="https://wiki.commander4j.com/index.php?title=Label_Fields&amp;diff=1972&amp;oldid=prev"/>
		<updated>2026-10-15T09:08:28Z</updated>

		<summary type="html">&lt;p&gt;Updated by push_wiki.py&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en-GB&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 11:08, 15 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l198&quot;&gt;Line 198:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 198:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[AutoLab4j]] prints the same template files with the same placeholders and the same [[Label Function Syntax|functions]], but it is not connected to the database. Its values come from the dataset CSV file that Commander4j writes when a process order is assigned to a line, and the field names are the column headings of that file. The list is on [[AutoLab4j Dataset CSV]]. The &amp;lt;code&amp;gt;^format&amp;lt;/code&amp;gt; suffix described above is not applied by AutoLab4j, so dates and numbers are printed exactly as they appear in the CSV.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[AutoLab4j]] prints the same template files with the same placeholders and the same [[Label Function Syntax|functions]], but it is not connected to the database. Its values come from the dataset CSV file that Commander4j writes when a process order is assigned to a line, and the field names are the column headings of that file. The list is on [[AutoLab4j Dataset CSV]]. The &amp;lt;code&amp;gt;^format&amp;lt;/code&amp;gt; suffix described above is not applied by AutoLab4j, so dates and numbers are printed exactly as they appear in the CSV.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[LabelServer4j]] &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;does &lt;/del&gt;not &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;use these &lt;/del&gt;template &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;files&lt;/del&gt;. &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;It drives Logopak and similar labellers with its own &lt;/del&gt;command scripts&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;, which share &lt;/del&gt;the same &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;family &lt;/del&gt;of functions&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;; see &lt;/del&gt;[[LabelServer4j Operation]].&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[LabelServer4j]] &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;keeps its own copy of the label files, in its own folders, one set per site. They are &lt;/ins&gt;not &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;shared with the Commander4j &amp;lt;code&amp;gt;labels&amp;lt;/code&amp;gt; folder, so a change made to a Commander4j &lt;/ins&gt;template &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;has to be repeated in the LabelServer4j copy&lt;/ins&gt;. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Its &lt;/ins&gt;command scripts &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;can carry &lt;/ins&gt;the same &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;printer commands, but a value is written as &amp;lt;code&amp;gt;$data_NAME&amp;lt;/code&amp;gt;, where NAME is a column &lt;/ins&gt;of &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;the dataset CSV, and formatted with &lt;/ins&gt;functions &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;such as &amp;lt;code&amp;gt;SUBSTRING&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;REPLACE&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;EXTRACT_DATE&amp;lt;/code&amp;gt;. See &lt;/ins&gt;[[LabelServer4j Operation&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;]] and [[LabelServer4j Dataset CSV&lt;/ins&gt;]].&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Barcode variables ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Barcode variables ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikic_mw:diff:1.41:old-1963:rev-1972:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Dgarratt</name></author>
	</entry>
	<entry>
		<id>https://wiki.commander4j.com/index.php?title=Label_Fields&amp;diff=1963&amp;oldid=prev</id>
		<title>Dgarratt: Updated by push_wiki.py</title>
		<link rel="alternate" type="text/html" href="https://wiki.commander4j.com/index.php?title=Label_Fields&amp;diff=1963&amp;oldid=prev"/>
		<updated>2026-10-15T09:03:33Z</updated>

		<summary type="html">&lt;p&gt;Updated by push_wiki.py&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;#039;&amp;#039;&amp;#039;Label Fields&amp;#039;&amp;#039;&amp;#039; lists every value you can place on a label template. This is the page to open when you want to add something to a label and need to know what it is called.&lt;br /&gt;
&lt;br /&gt;
A value is placed on the label by writing its name between &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;. When the label is printed, Commander4j replaces the placeholder with the real value for that pallet or case.&lt;br /&gt;
&lt;br /&gt;
 ^FD&amp;lt;*DESCRIPTION*&amp;gt;^FS&lt;br /&gt;
&lt;br /&gt;
prints the product description. Names are written in capitals exactly as listed below. See [[Label Template Syntax]] for how a whole template is put together and [[Label Function Syntax]] for ways to format a value before it is printed.&lt;br /&gt;
&lt;br /&gt;
Which names are available depends on which screen prints the label, because each screen reads a different set of data. The tables below are split the same way. If a name is used that is not available, the label prints the name followed by &amp;#039;&amp;#039;&amp;#039;not found!&amp;#039;&amp;#039;&amp;#039; in its place, so a mistake is visible on paper rather than silent.&lt;br /&gt;
&lt;br /&gt;
== Pallet labels ==&lt;br /&gt;
&lt;br /&gt;
These fields are available on labels printed from the [[Pallet Label]] screen and from the other pallet screens that can print a label: [[Production Declaration]], [[Pallet Issue]], [[Pallet Return]], [[Split Pallet]] and the pallet label re-print dialog. The values are read from the pallet record together with its material, batch and customer.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! What it prints&lt;br /&gt;
|-&lt;br /&gt;
| SSCC || text || The 18-digit pallet number.&lt;br /&gt;
|-&lt;br /&gt;
| MATERIAL || text || Product code.&lt;br /&gt;
|-&lt;br /&gt;
| DESCRIPTION || text || Product description from [[Materials]].&lt;br /&gt;
|-&lt;br /&gt;
| OLD_MATERIAL || text || The previous product code held on the material, if you use one.&lt;br /&gt;
|-&lt;br /&gt;
| EAN || text || GTIN of the unit on the pallet. Usually wrapped in PADLEFT to make it 14 digits: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;PADLEFT(&amp;lt;*EAN*&amp;gt;,14,0)&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| VARIANT || text || GS1 variant of the unit on the pallet, usually padded to 2 digits.&lt;br /&gt;
|-&lt;br /&gt;
| QUANTITY || number || Number of units on the pallet. Printed as a whole number padded to 4 digits unless a format is given, for example &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*QUANTITY^0*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; for no padding.&lt;br /&gt;
|-&lt;br /&gt;
| UOM || text || Unit of measure for QUANTITY.&lt;br /&gt;
|-&lt;br /&gt;
| LAYERS || number || Number of layers on the pallet.&lt;br /&gt;
|-&lt;br /&gt;
| BATCH_NUMBER || text || Batch or lot number.&lt;br /&gt;
|-&lt;br /&gt;
| PROCESS_ORDER || text || Process order number.&lt;br /&gt;
|-&lt;br /&gt;
| REQUIRED_RESOURCE || text || Production line or resource from the process order.&lt;br /&gt;
|-&lt;br /&gt;
| DATE_OF_MANUFACTURE || date || Date of manufacture. Prefer the [[Label Function Syntax#PRODDATE|PRODDATE]] function, which formats it for you.&lt;br /&gt;
|-&lt;br /&gt;
| EXPIRY_DATE || date || Expiry date held against the batch. Prefer the [[Label Function Syntax#EXPIRYDATE|EXPIRYDATE]] function, which picks the batch or pallet date according to the &amp;#039;&amp;#039;&amp;#039;EXPIRY DATE MODE&amp;#039;&amp;#039;&amp;#039; setting.&lt;br /&gt;
|-&lt;br /&gt;
| SSCC_EXPIRY_DATE || date || Expiry date held against the pallet. Only populated when EXPIRY DATE MODE is SSCC.&lt;br /&gt;
|-&lt;br /&gt;
| DATE_CREATED || date and time || When the pallet record was created. Prefer the [[Label Function Syntax#DATE_CREATED|DATE_CREATED]] function.&lt;br /&gt;
|-&lt;br /&gt;
| DATE_UPDATED || date and time || When the pallet record was last changed.&lt;br /&gt;
|-&lt;br /&gt;
| CREATED_BY_USER_ID, UPDATED_BY_USER_ID || text || Who created or last changed the pallet record.&lt;br /&gt;
|-&lt;br /&gt;
| CUSTOMER_ID || text || Customer code from the process order.&lt;br /&gt;
|-&lt;br /&gt;
| CUSTOMER_NAME || text || Customer name from [[Customers]].&lt;br /&gt;
|-&lt;br /&gt;
| PRINT_ON_LABEL || text || The customer&amp;#039;s print-on-label flag from [[Customers]].&lt;br /&gt;
|-&lt;br /&gt;
| LOCATION_ID || text || Where the pallet currently is.&lt;br /&gt;
|-&lt;br /&gt;
| STATUS || text || Pallet status.&lt;br /&gt;
|-&lt;br /&gt;
| CONFIRMED || text || Y once the pallet has been confirmed, otherwise N.&lt;br /&gt;
|-&lt;br /&gt;
| DESPATCH_NO || text || Despatch number, blank until the pallet is despatched.&lt;br /&gt;
|-&lt;br /&gt;
| MHN_NUMBER, DECISION || text || Master hold notice number and quality decision, if the pallet is on hold.&lt;br /&gt;
|-&lt;br /&gt;
| EQUIPMENT_TYPE || text || The pallet or equipment type.&lt;br /&gt;
|-&lt;br /&gt;
| GROSS_WEIGHT, NET_WEIGHT, WEIGHT_UOM || number, number, text || Weights held on the material record. For the total pallet weight use the [[Label Function Syntax#PALLET_WEIGHT_TEXT|PALLET_WEIGHT_TEXT]] function.&lt;br /&gt;
|-&lt;br /&gt;
| PART_NO || text || The customer&amp;#039;s part number for this material, from [[Customer Data]].&lt;br /&gt;
|-&lt;br /&gt;
| CASE_CONTENT || text || Free text describing the case contents, from [[Customer Data]].&lt;br /&gt;
|-&lt;br /&gt;
| ALT_TEXT_1 || text || Spare free text for this material and customer, from [[Customer Data]].&lt;br /&gt;
|-&lt;br /&gt;
| BASE_EAN, BASE_VARIANT || text || GTIN and variant of the base unit of the material.&lt;br /&gt;
|-&lt;br /&gt;
| BASE_UOM || text || The base unit of measure.&lt;br /&gt;
|-&lt;br /&gt;
| BASE_QUANTITY || number || Pallet quantity converted into base units.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Case and tray labels ==&lt;br /&gt;
&lt;br /&gt;
These fields are available on labels printed from the [[Case Label]] screen. Note that several names differ from the pallet list: the GTIN is &amp;#039;&amp;#039;&amp;#039;PROD_EAN&amp;#039;&amp;#039;&amp;#039; here rather than EAN, the description is &amp;#039;&amp;#039;&amp;#039;MATERIAL_DESCRIPTION&amp;#039;&amp;#039;&amp;#039;, and there is no SSCC or LAYERS. A pallet template used as a case label prints &amp;quot;not found!&amp;quot; for those.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! Type !! What it prints&lt;br /&gt;
|-&lt;br /&gt;
| UNIQUE_ID || text || Internal identifier for this print request.&lt;br /&gt;
|-&lt;br /&gt;
| MATERIAL || text || Product code.&lt;br /&gt;
|-&lt;br /&gt;
| MATERIAL_DESCRIPTION || text || Product description.&lt;br /&gt;
|-&lt;br /&gt;
| MATERIAL_TYPE || text || Material type code.&lt;br /&gt;
|-&lt;br /&gt;
| PROD_EAN, PROD_VARIANT || text || GTIN and variant of the unit being labelled.&lt;br /&gt;
|-&lt;br /&gt;
| PROD_QUANTITY || number || Quantity being labelled.&lt;br /&gt;
|-&lt;br /&gt;
| PROD_UOM || text || Unit of measure for PROD_QUANTITY.&lt;br /&gt;
|-&lt;br /&gt;
| BASE_EAN, BASE_VARIANT, BASE_QUANTITY, BASE_UOM || mixed || The same values for the base unit.&lt;br /&gt;
|-&lt;br /&gt;
| BATCH_NUMBER || text || Batch number as printed.&lt;br /&gt;
|-&lt;br /&gt;
| BATCH_PREFIX, BATCH_SUFFIX || text || The parts added to the batch number, when used.&lt;br /&gt;
|-&lt;br /&gt;
| OVERRIDE_BATCH_PREFIX, OVERRIDE_MANUFACTURE_DATE, OVERRIDE_EXPIRY_DATE || text || Y when the operator overrode the default, otherwise N.&lt;br /&gt;
|-&lt;br /&gt;
| PROCESS_ORDER || text || Process order number.&lt;br /&gt;
|-&lt;br /&gt;
| REQUIRED_RESOURCE || text || Production line or resource.&lt;br /&gt;
|-&lt;br /&gt;
| LINE || text || The production line chosen on the screen.&lt;br /&gt;
|-&lt;br /&gt;
| LOCATION_ID || text || Location from the process order.&lt;br /&gt;
|-&lt;br /&gt;
| DATE_OF_MANUFACTURE || date || Date of manufacture. Add a format, for example &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*DATE_OF_MANUFACTURE^dd/MM/yyyy*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| EXPIRY_DATE || date || Expiry date. Add a format in the same way.&lt;br /&gt;
|-&lt;br /&gt;
| EXPIRY_MODE || text || BATCH or SSCC.&lt;br /&gt;
|-&lt;br /&gt;
| CUSTOMER_ID, CUSTOMER_NAME || text || Customer code and name.&lt;br /&gt;
|-&lt;br /&gt;
| PART_NO, ALT_TEXT_1 || text || Customer-specific text from [[Customer Data]].&lt;br /&gt;
|-&lt;br /&gt;
| LABEL_TYPE || text || Pack or Pallet.&lt;br /&gt;
|-&lt;br /&gt;
| MODULE_ID || text || The report module that produced the label.&lt;br /&gt;
|-&lt;br /&gt;
| PRINT_DATE || date and time || When the label was requested.&lt;br /&gt;
|-&lt;br /&gt;
| PRINT_COPIES || number || Number of copies requested.&lt;br /&gt;
|-&lt;br /&gt;
| PRINT_QUEUE_NAME || text || The queue or printer chosen.&lt;br /&gt;
|-&lt;br /&gt;
| USER_ID, WORKSTATION_ID || text || Who printed it and from which PC.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Labels printed by the [[Quality Control Sample]] screen use their own, smaller set of fields and are not covered here.&lt;br /&gt;
&lt;br /&gt;
== Fields that are always available ==&lt;br /&gt;
&lt;br /&gt;
These are added by Commander4j for every label template, whichever screen prints it.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Field !! What it prints&lt;br /&gt;
|-&lt;br /&gt;
| LABEL_NO || The copy number, 1 for the first label of a pallet, 2 for the second and so on. The standard label prints it as L1, L2.&lt;br /&gt;
|-&lt;br /&gt;
| HEADER_COMMENT || The text of the &amp;#039;&amp;#039;&amp;#039;LABEL_HEADER_COMMENT&amp;#039;&amp;#039;&amp;#039; system key, but only when the header text tick box on the printing screen is ticked. It is ticked by default. Otherwise blank.&lt;br /&gt;
|-&lt;br /&gt;
| PLANT || The &amp;#039;&amp;#039;&amp;#039;PLANT&amp;#039;&amp;#039;&amp;#039; system key.&lt;br /&gt;
|-&lt;br /&gt;
| EXPIRY_DATE_MODE || The &amp;#039;&amp;#039;&amp;#039;EXPIRY DATE MODE&amp;#039;&amp;#039;&amp;#039; system key, BATCH or SSCC.&lt;br /&gt;
|-&lt;br /&gt;
| ZPL_LABEL_COUNT || The number of copies requested, for use with the ZPL &amp;lt;code&amp;gt;^PQ&amp;lt;/code&amp;gt; command. See the DEFINE BARCODE COUNT_MODE note in [[Label Template Syntax]].&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Values that are not fields but are useful on a label, such as the current user, the date and time of printing, and the Commander4j version, come from [[Label Function Syntax|functions]]: &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;USERNAME()&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;TIMESTAMP(dd/MM/yyyy HH:mm)&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;VERSION()&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Formatting a value ==&lt;br /&gt;
&lt;br /&gt;
A format can follow the field name after a &amp;lt;code&amp;gt;^&amp;lt;/code&amp;gt; character. It applies to dates, times and numbers only, and is ignored for text.&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Example !! Prints&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*DATE_OF_MANUFACTURE*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || 2026-03-01 (the default date format is yyyy-MM-dd)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*DATE_OF_MANUFACTURE^dd/MM/yyyy*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || 01/03/2026&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*PRINT_DATE^HH:mm*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || 16:46&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*QUANTITY*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || 0224 (the default number format is 0000)&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*QUANTITY^0*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || 224&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*QUANTITY^000000*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; || 000224&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Date formats use the Java pattern letters: dd day, MM month, yy or yyyy year, HH hour, mm minute, ss second. Number formats use 0 for a digit that is always printed and # for a digit that is printed only when needed.&lt;br /&gt;
&lt;br /&gt;
Two things to be aware of:&lt;br /&gt;
&lt;br /&gt;
* Round brackets in a text value are printed as curly braces, so a description of &amp;lt;code&amp;gt;Widget (Blue)&amp;lt;/code&amp;gt; appears as &amp;lt;code&amp;gt;Widget {Blue}&amp;lt;/code&amp;gt;. This protects the function syntax, which uses round brackets.&lt;br /&gt;
* If a date format is invalid the label prints the field name and an error message in place of the date.&lt;br /&gt;
&lt;br /&gt;
== AutoLab4j ==&lt;br /&gt;
&lt;br /&gt;
[[AutoLab4j]] prints the same template files with the same placeholders and the same [[Label Function Syntax|functions]], but it is not connected to the database. Its values come from the dataset CSV file that Commander4j writes when a process order is assigned to a line, and the field names are the column headings of that file. The list is on [[AutoLab4j Dataset CSV]]. The &amp;lt;code&amp;gt;^format&amp;lt;/code&amp;gt; suffix described above is not applied by AutoLab4j, so dates and numbers are printed exactly as they appear in the CSV.&lt;br /&gt;
&lt;br /&gt;
[[LabelServer4j]] does not use these template files. It drives Logopak and similar labellers with its own command scripts, which share the same family of functions; see [[LabelServer4j Operation]].&lt;br /&gt;
&lt;br /&gt;
== Barcode variables ==&lt;br /&gt;
&lt;br /&gt;
A name defined with &amp;#039;&amp;#039;&amp;#039;DEFINE BARCODE&amp;#039;&amp;#039;&amp;#039; at the top of the template can also be used as a field. In the standard label, &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*BARCODE1*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;&amp;lt;*BARCODE2*&amp;gt;&amp;lt;/nowiki&amp;gt;&amp;lt;/code&amp;gt; are the two GS1-128 barcodes with their code-set switching already worked out. This is explained in [[Label Template Syntax]].&lt;br /&gt;
&lt;br /&gt;
== For database administrators ==&lt;br /&gt;
&lt;br /&gt;
The pallet fields are the columns of the database view &amp;#039;&amp;#039;&amp;#039;VIEW_PALLET_EXPIRY&amp;#039;&amp;#039;&amp;#039; and the case fields are the columns of &amp;#039;&amp;#039;&amp;#039;VIEW_LABEL_DATA&amp;#039;&amp;#039;&amp;#039;. The columns are the same on MySQL, Microsoft SQL Server and Oracle. A site that needs an extra value on its labels can have these views extended, but the change is overwritten by upgrades, so talk to support first.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[Label Layouts]]&lt;br /&gt;
* [[Changing a Label]]&lt;br /&gt;
* [[Label Template Syntax]]&lt;br /&gt;
* [[Label Function Syntax]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Commander4j]]&lt;br /&gt;
[[Category:AutoLab4j]]&lt;/div&gt;</summary>
		<author><name>Dgarratt</name></author>
	</entry>
</feed>