HPE Community read-only access December 15, 2018
This is a maintenance upgrade. You will be able to read articles and posts, but not post or reply.
Hours:
Dec 15, 4:00 am to 10:00 am UTC
Dec 14, 10:00 pm CST to Dec 15, 4:00 am CST
Dec 14, 8:00 pm PST to Dec 15, 2:00 am PST
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

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
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.