Operating System - OpenVMS
1752761 Members
4990 Online
108789 Solutions
New Discussion юеВ

Assigning the return value of a DCL command to a symbol or any other variable

 
SOLVED
Go to solution
mustafa_12
Frequent Advisor

Assigning the return value of a DCL command to a symbol or any other variable

Hello all,

Is there a way to assign the return value of a DCL command to a symbol or any other variable like (the syntax is not correct, of course):

a="pipe show queue my_queue /all | search sys$input search_str"

Best Regards...
6 REPLIES 6
Volker Halle
Honored Contributor
Solution

Re: Assigning the return value of a DCL command to a symbol or any other variable

Mustafa,

for an example from a recent discussion please see:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=876934

Volker.
Ian Miller.
Honored Contributor

Re: Assigning the return value of a DCL command to a symbol or any other variable

the following may be useful
http://dcl.openvms.org/stories.php?story=06/02/14/9046103
____________________
Purely Personal Opinion
Hein van den Heuvel
Honored Contributor

Re: Assigning the return value of a DCL command to a symbol or any other variable


Agreed. Would be nice. I'm sure I suggested dsomething along those lines here a few weeks ago, but can not find it back. Anyway, the syteax should of course use a backtick. That woudl be Unix compatible, and the backtick has not been used in OpenVMS untill now, so it should be a free for all.

a = `pipe show queue my_queue /all | search sys$input search_str`

Hein.
Robert Atkinson
Respected Contributor

Re: Assigning the return value of a DCL command to a symbol or any other variable

There's a request for this at :-

http://www.hpuseradvocacy.org/node/1991

If it's something you think would be useful, please vote for it.

Robert.
Karl Rohwedder
Honored Contributor

Re: Assigning the return value of a DCL command to a symbol or any other variable

I just did!

regards Kalle
mustafa_12
Frequent Advisor

Re: Assigning the return value of a DCL command to a symbol or any other variable

Thank you all, I have found the answer in Volker's link.