home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   comp.os.vms      DEC's VAX* line of computers & VMS.      264,096 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 262,678 of 264,096   
   David Meyer to All   
   Capturing DCL output in symbol   
   10 May 25 10:53:57   
   
   From: papa@sdf.org   
      
   I am working on a DCL script where I want to capture output from a   
   command in a symbol for manipulation later in the script.   
      
   I have it working by using the /OUTPUT qualifier on the command to put   
   the output (just 1 line in this case) into a temporary file, then later   
   use READ to put the contents of the temporary file into a symbol.   
      
   I was wondering if I could use PIPE to do the same thing without having   
   to create and later clean up the temporary file, but so far I have been   
   unable to fine a way to get READ inside a PIPE to set a symbol that's   
   accessible outside the PIPE command.   
      
   READ's help says that it creates the symbol in the local symbol table,   
   but is there anyway to get READ to set a global symbol?   
   --   
   David Meyer   
   Takarazuka, Japan   
   papa@sdf.org   
      
   --- SoupGate-DOS v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca