It is just things i tested… I suspect…. £ is # like @ is à… So there no syntax to assign characters to a variable to test it through a if ?
Resiliency Services on Z Mainframe alain.benveni...@kyndryl.com > Le 26 nov. 2022 à 12:24, Kris Buelens <kris.buel...@gmail.com> a écrit : > > This doesn't read very well here > " set £1!!!!=''", > I guess £1 stands for #1 outside the UK, and I don't understand what these > !!!! are supposed to do > Ignoring !!!! it would mean you try to assign counter 1 to an empty > string. It are counters, hence only accept numeric values > > Kris Buelens, > --- VM/VSE consultant, Belgium --- > ----------------------------------------------------------------------- > > > Op za 26 nov. 2022 om 11:00 schreef Alain Benveniste <a.benveni...@free.fr>: > >> Hi, >> >> I try to compare characters fields (a, b and c) in the if using this way >> and the !!!! concatenation. >> Both cases send me a error msg. >> The sets seem ok, but when testing them in the if it looks to me I use a >> wrong syntax... >> >> "! SPECs", >> " a: 54.5 .", >> " b: 67.10 .", >> " c: 85.4 .", >> " set £1!!!!=''", >> " set £2!!!!=''", >> " set £3!!!!=''", >> " set £4:=0", >> " set £5:=0", >> " if (£1=a & £2=b & £3=c) then", >> " set £4+=1", >> " set £5:=1", >> " else", >> " set £4:=1", >> " set £5+=1", >> " set £1!!!!=a", >> " set £2!!!!=b", >> " set £3!!!!=c", >> " endif", >> " 1-* 1", >> " print £4 picture 99999 nextword", >> " print £5 picture 99999 next", >> >> Alain >> >>