PADR(TRANSFORM(InsCarr.CarName, '@T'), 30, ' ')But now I'm getting truncated values in the individual fields in this SQL:
TRANSFORM(Patient.PCare_Phy, '@T') + '^' + TRANSFORM(RefProv.LAST, '@T') + '^' + TRANSFORM(RefProv.FIRST, '@T')Do I have to pad each one? I'm sure I do, but what I really need is the trimmed values in the resulting field. Like "000001^Johnson^Donald" not "000001^Johnson ^Donald " if that made sense (I typed 5 spaces before the "^" but the UT parser ignored 4 of them).
>PADR(TRANSFORM(InsCarr.CarName, "@T") + '|', 30) AS InsuranceCarrierName, >>
>>SELECT ; >> TRANSFORM(InsCarr.InsCarr, "@T") + '|' AS InsuranceCarrierID, ; >> PADR(TRANSFORM(InsCarr.CarName, "@T"), 30, ' ') + '|' AS InsuranceCarrierName, ; >> IIF(Covr.CvPs == 'P', 'Primary', IIF(Covr.CvPs == 'S', 'Secondary', IIF(Covr.CvPs == 'T', ; >> 'Tertiary',''))) AS InsuranceCoverage ; >> FROM Covr ; >> JOIN InsCarr ON InsCarr.InsCarr == Covr.CvCarr ; >> WHERE ; >> Covr.Pat_No = m.PtPn ; >> AND BETWEEN(DATE(), Covr.Eff_Date, EVL(Covr.Exp_Date, DATE(9999,12,31))) ; >> INTO CURSOR (ADT_IN1) >>