thelearner
Programmer
D scsw S 2 INZ('03')
D num S 2 0
num = %uns(scsw) -1;
scsw = %editc(num:'X'); // scsw = '02'
why the above coding works but the below doesn't?
scsw = %editc((%uns(scsw)-1):'X'); // scsw = '00'
Is there anyway I can combine the coding into 1 line?
Thanks.
D num S 2 0
num = %uns(scsw) -1;
scsw = %editc(num:'X'); // scsw = '02'
why the above coding works but the below doesn't?
scsw = %editc((%uns(scsw)-1):'X'); // scsw = '00'
Is there anyway I can combine the coding into 1 line?
Thanks.