|
I am getting the message
SQL0312 - Position 43 Variable PRTDEV not defined or not usable.
when I don't think I should be.
...
/eject
P RtvQryPrt B
D RtvQryPrt PI Like(ObjNam)
D QryObjLib Like(Obj_Lib) const
D PrtDev S Like(ObjNam)
...
C/exec sql
C+ select substr(dmpobj,92,10) into :PRTDEV
C+ from qtemp/dmpobj
C+ where substr(dmpobj,3,6)='002EC0'
C/end-exec
...
return PrtDev;
/end-free
P RtvQryPrt E
Rob Berendt
==================
A smart person learns from their mistakes,
but a wise person learns from OTHER peoples mistakes.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.