Operating System - OpenVMS
1753776 Members
7099 Online
108799 Solutions
New Discussion

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

 
SOLVED
Go to solution
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