--label (Required, MUST be first line/option in query)
--table=calibration --[any]
--action=print --[preview]
--(templateString MUST be the LAST option) 
--templateString=
SELECT '^SS01|^TS001'
+ (if C2333 is null then C2360 else C2355 End If)
+ '|'
+ C2358
+ '|'
+ C2364
+ '|'
+ Dateformat(C2301, 'MMM dd yyyy')
+ '|'
+ Dateformat(C2303, 'MMM dd yyyy')
+ '|'
+ Dateformat(C2301, 'M-ddyyyy') + C2395
+ '|'
+ 'NPR'
+ '^FF'
from mt.inventory, mt.calibration  
where mt.inventory.mtag = mt.calibration.mtag and ctag = 'F611-42:1527082479'