Operating System - OpenVMS
1828204 Members
2534 Online
109975 Solutions
New Discussion

Re: Symbols in TYPE SYS$INPUT

 
SOLVED
Go to solution
Robert Atkinson
Respected Contributor

Symbols in TYPE SYS$INPUT

Anyone know of a way to translate symbols in TYPE SYS$INPUT, e.g. :-

$ !
$ TEST = "A TEST"
$ !
$ TYPE SYS$INPUT

THIS IS ''TEST' OK?

$ !

I'm outputting HTML, but have embedded symbols in it that I have to keep switching back into DCL for.

Cheers, Rob.
4 REPLIES 4
Marc Van den Broeck
Trusted Contributor

Re: Symbols in TYPE SYS$INPUT

Rob,

write to a file in stead of using type sys$input.

e.g.
$write some_open_file "This is 'TEST' OK?"
will translate the symbol test

or use
$write sys$output "This is 'TEST' OK?"

to write directly to output.

Rgds
Marc

Hein van den Heuvel
Honored Contributor

Re: Symbols in TYPE SYS$INPUT


Sorry, no can do.

Hein.
Uwe Zessin
Honored Contributor
Solution

Re: Symbols in TYPE SYS$INPUT

It is because TYPE is directly reading the data from the file that makes up the command procedure - those records are not pre-processed by DCL.
.
Robert Atkinson
Respected Contributor

Re: Symbols in TYPE SYS$INPUT

Ok, thanks guys. I thought that would be the case.

Rob.