Question Kaveh Kaviani · Oct 30 dynamic SQL in object script code i am trying to embed a dynamic SQL into Objectscript code , but the %NEXT() will return 0 , however when i copy the same query and run it in the SQL bit it will give me the result i want the code : #ObjectScript #SQL #HealthShare #InterSystems IRIS #InterSystems IRIS for Health 0 2 0 98