Hello everyone,
I have to ask a (maybe) stupid thing, but I never did it and I don't know if it's possible to do. I have to read a field value and execute a subroutine whose name is the field value.
Example:
select
when myField = 'subABC'
exsr subABC
when myField = 'subQWERTY'
exsr subQWERTY
... etc ...
endsl
Is there a way to write something like this?
exsr myFieldValue
Thank you so much!!
I have to ask a (maybe) stupid thing, but I never did it and I don't know if it's possible to do. I have to read a field value and execute a subroutine whose name is the field value.
Example:
select
when myField = 'subABC'
exsr subABC
when myField = 'subQWERTY'
exsr subQWERTY
... etc ...
endsl
Is there a way to write something like this?
exsr myFieldValue
Thank you so much!!
Comment