I know I am just missing something here but this is my setup:
WBLINE is defined 5A
LINE_KEY is defined 5A
WBLINE = '00001'
LINE_KEY = *BLANKS
I want to add 1 to WBLINE and then store that in LINE_KEY. I've tried the following but keep getting LINE_KEY = '00000' in each instance:
LINE_KEY = %EDITC(%DEC(WBLINE:5:0) + 1:'X');
LINE_KEY = %EDITC(((%DEC(WBLINE:5:0)) + 1):'X');
I know I am just missing something simple. Any help is greatly appreciated!!!!!
I ended up doing this and it works great but thought I could make it with one statement (WRK_LINE is 5.0):
wrk_line = %dec(wbline:5:0) + 1;
line_key = %editc(wrk_line:'X');