I am trying to convert larg number to string in MUMPS but I can't.
Let me explain what I would like to do :
s A="TEST_STRING#12168013110012340000000001"
s B=$P(A,"#",2)
s TAB(B)=1
s TAB(B)=1
I would like create an array TAB
where variable B
will be a primary key for array TAB
.
When I do ZWR
I will get
A="TEST_STRING#12168013110012340000000001"
B="12168013110012340000000001"
TAB(12168013110012340000000000)=1
TAB("12168013110012340000000001")=1
as you can see first SET
recognize variable B
as a number
(wrongly converted) and second SET
recognize variable B
as a string
( as I would like to see ).
My question is how to write SET
command to recognize variable B
as a string
instead of number ( which is wrong in my opinion ).
Any advice/explanation will be helpful.