MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2014

Re: Substr question in Query 400



fixed

SUBSTR Substring is only allowed on strings. You have to convert your numeric to a string befors using substr: SUBSTR(DIGITS(IDDOCD),1,6). The result is a string.

Best regards

Jan

Am 28.02.2014 15:25, schrieb Hoteltravelfundotcom:
HI I am getting an error when i try to make substring. The date we have is
8 pos. yyyymmdd
i need to sort according to month. I get this error "SUBSTR value is not
allowed. " this is because it is numeric and it's not allowed to substr
on numeric?

YYYYMM SUBSTR(IDDOCD,1,6) 06
00





Bottom


Field Text Len
Dec
IDORDT ORDER TYPE 3

IDDOCD DOCUMENT DATE 8
0






Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot COM and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available here. If you have questions about this, please contact