Subject: | |
From: | |
Reply To: | |
Date: | Fri, 19 Jan 2001 13:25:19 -0800 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
If you put an ! in front of the > it will pass
through, as in this example:
:echo this is a !> arrow >x
:print x
this is a > arrow
Having said that, I would warn against trying
to manipulate large files with typical MPE commands.
Without seeing exactly what you are doing I can't say,
but I hope that most of the work in processing the
'large file' is being done by a program or you may
find it takes a really long time to run.
We had a programmer who was processing a file by using the
PRINT command and starting and ending records. Since each
time you did a PRINT it had to start from the beginning,
it worked okay for small test files, but quickly started
taking an hour to process a production sized file.
This was a BIG problem for a job that was running hourly!
-----Original Message-----
From: VANCE,JEFF (HP-Cupertino,ex1) [mailto:[log in to unmask]]
Sent: Friday, January 19, 2001 12:12 PM
To: [log in to unmask]
Subject: Re: [HP3000-L] CIOR and Echoing variables
> We are trying to setup a command file that will be processing
> some large files into a number of smaller files. The record is
> read into a system variable and then echoed into a file using CIOR.
> The problem is that...the records could (and do) contain the
> characters > and <. The CI is evaluating these as part of command
> IO redirection and failing on file not found or illegal filename
> errors.
Have you tried replacing all ">" and "<" in the variable with nul ("").
E.g.
setvar rec input # assuming IO is redirected to a file
setvar rec repl(repl(rec,">",""),"<","")
HTH,
Jeff Vance, CSY
|
|
|