var sqlUtils = new Packages.com.quantros.utils.SQLUtils(); var DBMS_URL="train"; var vErrors=""; /**************************** START FUNCTIONS ****************************************/ var checkManFields = function(arrlabels,arr) { var errorMsgs=""; if (arr.length!=arrlabels.length) { errorMsgs+="Tahoe 16801 Labels and columns array must match"; } for(var i=0; i sizeSpec) { vErrors += elemLabel + "Tahoe 16801 Size greather than specified. Expecting: " + sizeSpec + " Actual: " + elemValue.length; logger.error("Tahoe 16801" + elemLabel + " size greather than specified. elemValue: " + elemValue + " Expecting: " + sizeSpec + " Actual: " + elemValue.length + " msg: " + connectorMessage.getRawData()); } return elemValue; } function formatDate(value,dateFormat) { var s=""; if ((value=="")||(value.length<8)) return ""; else { value=value.substring(0,8); s=new java.text.SimpleDateFormat("MM/dd/yyyy").format(new java.text.SimpleDateFormat(dateFormat).parse(value)); } return s; } String.prototype.trim = function() { a = this.replace(/^\s+/, ''); return a.replace(/\s+$/, ''); };