Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Tool to change INQUIRE statements to READ in command procedures?

 
SOLVED
Go to solution
Highlighted
John Gillings
Honored Contributor

Re: Tool to change INQUIRE statements to READ in command procedures?

DCL can be a horrible quagmire of complications! Something apparently simple can spin out with all manner of exceptions and edge conditions. 

 

My proposal wasn't to change the DCLTABLES. The program is intended to be used as a foreign command:

 

$ INQ*UIRE=="$dev:[dir]INQUIRE"

 

That will break with Hartmut's example:

 

$ ask:=inquire/nopunc
$ ask file "Filename "
 
since DCL doesn't do iterative symbol substitution. There are, no doubt, many other examples of convoluted DCL which will break assumptions Hein or I have made about how INQUIRE will be used. I guess you can rely on the CAPTINQ error to catch those cases.
 

You could do the substitution at CLI level (but my code would need to be changed, I prefer to put the CLD into the image itself).

A crucible of informative mistakes