[Info-vax] Command Procedure Pipe output to a variable
cao...@pitbulluk.org
caoimhe at pitbulluk.org
Tue Aug 31 12:26:38 EDT 2021
On Tuesday, August 31, 2021 at 4:50:03 PM UTC+1, MG wrote:
> On 31-Aug-2021 14:11, Jim wrote:
> > Maybe pass the value of the SEARCH output back to the parent process using a job logical name...
> >
> > $ pipe/nosymbol/nological -
> > show process YYYYYY | -
> > search sys$pipe "Devices allocated:" | -
> > ( read sys$pipe x ; define/job x &x )
> > $ device_aux = f$element(1,":",f$edit(f$trnlnm("x","lnm$job"),"collapse"))
> > $ deassign/job x
> > $ show symbol device_aux
> Interesting workaround.
>
> - MG
Chances are though, you will still only get a node$MPAx: device back because it'll be the first listed after 'Devices allocated:' thanks to the PIPE command
More information about the Info-vax
mailing list