ibm midrange - Need to add 1 pos. to the substring in this SQL -
This SQL is working but the second object is the order number. For this we have to add '0' to the end, 8 to create the situation. Not sure how to do this in SQL.
Select CODE1 as SUBSTR (UANOTL, 1,4), SUBSTR (UANOTL, 5, 7) as the order #, UAATHN, ANTTDA from UINET. Note H1T101 where Esbbart (UANOTL, 1,4) = 'REM'
You need The:
CODE1, SUBSTR (UANOTL, 5,7) as SELECT ALL SUBSTR (UANOTL, 1,4) || ASTDTA.Not 1H1T 001 from #, UAATHN, UNOTD as '0', where Asbart (UANOTL, 1,4) = 'REM'
Comments
Post a Comment