> To post to this group, send email to Ensemble-in-Healthcare@googlegroups.com
> To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/Ensemble-in-Healthcare?hl=en
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in-Healthcare@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healthcare-unsub...@googlegroups.com
Jorge
The first query returns a single row so SQLCODE=0 is correct and the value Codigo=0 can be used.
In the second case, no rows are found so SQLCODE=100. At this point the content of codigo is undertermined.
What do you want to prevent? Both behaviors seem correct.
dave
> To post to this group, send email to
Ensemble-in...@googlegroups.com
> To unsubscribe from this group, send email to
Ensemble-in-Healt...@googlegroups.com
> For more options, visit this group athttp://groups.google.com/group/Ensemble-in-Healthcare?hl=en
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to
Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to
Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com