The NEXT-VALUE function needs 2 input Parameters. The first one is the name of the sequence to use and the second must be the logical database name:
NEXT-VALUE(Sequence, BasisDB)
My problem is, that I have to use NEXT-VALUE dynamically, but neither Sequence nor BasisDB can be put into the function using string variables or VALUE():
NEXT-VALUE(cSequenceName, cLogicDBName)
Is there a possibility to solve this problem "dynamically"?
Thanks for your help, Pascal
NEXT-VALUE(Sequence, BasisDB)
My problem is, that I have to use NEXT-VALUE dynamically, but neither Sequence nor BasisDB can be put into the function using string variables or VALUE():
NEXT-VALUE(cSequenceName, cLogicDBName)
Is there a possibility to solve this problem "dynamically"?
Thanks for your help, Pascal