[Info-vax] /END=label
Marc Van Dyck
marc.gr.vandyck at invalid.skynet.be
Fri Aug 31 11:50:20 EDT 2018
Paul Sture formulated on mardi :
> Where you are going to use lib$do_command to execute GOTO, I'd
> definitely recommend putting the target label into a DCL symbol which
> the program extracts via LIB$GET_SYMBOL. This way you can keep the
> logic flow visible within the DCL alone. This should eliminate the "WTF
> problem" which occurs on production systems where the program sources
> are not available.
>
The label will be passed via a DCL qualifier and retrieved by the
program via a call to CLI$GET_VALUE.
In the CLD there will be an additional line, something like
(from memory, sorry) :
qualifier END, type = ? value(required)
Still have to investigate which type to use (must look at the READ
command definition and copy it) and test around to see how errors
like undefined label specified are handled.
But many thanks !
--
Marc Van Dyck
More information about the Info-vax
mailing list