Sujet : Re: Text processing on VMS
De : news (at) *nospam* cct-net.co.uk (Chris Townley)
Groupes : comp.os.vmsDate : 13. Oct 2024, 16:20:20
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <vegofl$l211$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 13/10/2024 16:04, David Meyer wrote:
I've got a text file with data that I want to select lines matching
certain character strings, then extract string values from the selected
lines by character position. On Unix, I would use awk or Perl. Does VMS
have a similar tool, should I use my favorite programming language and
call the STR$ RTL, can I write a TPU script to do this, or should I
transfer the file to a Unix box and user awk or Perl? ;)
I have often done this in this manner:
Search file for matching records to second file.
Read through in a DCL loop, and use f$locate to find the string, then f$extract to extract what I want, then write to a third file.
-- Chris