Re: Adding a column to an existing output file



<robert.corbett@xxxxxxx> wrote:

On Oct 31, 4:48 am, csocean <csoc...@xxxxxxxxx> wrote:

Does anyone know if there's a way to use APPEND (or something similar)
to add a column to an output file, rather than adding rows at the
end? I need it to grow sideways rather than downwards.

If you are on a UNIX or UNIX-like system, you can write the
new information to a file, and then invoke the system utility
"paste" by a call to the routine SH or SYSTEM.

But while it can be convenient, note that paste doesn't directly modify
the file. It creates a whole new file, which you could then rename if
you wanted. This is exactly equivalent to what Glenn described in saying
that you could write out a new file. With paste, someone else has just
done the work of writing out that code for you. That can be convenient,
but don't think that it magically does what you can't otherwise do -
actually add columns directly to the file. In using it, you are buying
possible convenience - not magic.

(I realize that Bob didn't imply otherwise. I just can imagine people
reading more into it than is there.)

--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.



Relevant Pages

  • RE: Processing one file at a time in BTS 2002
    ... output file, you want to either Append, Overwrite or CreateNew (if exists ... Since you do not want them to append, you should select a unique name by ... using File name macro substitution and CreateNew option. ... refer to BizTalk documentations. ...
    (microsoft.public.biztalk.server)
  • Add Record To Existing Table via VB code
    ... name field on output file, ... can not find is the code to add or APPEND the data to the new table. ... 'primary-key part 3 ... Programmer Analyst II ...
    (microsoft.public.access.formscoding)
  • Re: How to output values to a file for different runs
    ... ram wrote: ... time that output file doesn't append the output the values. ... Daniel Pitts' Tech Blog: ...
    (comp.lang.java.programmer)
  • Re: Newbe needs help
    ... and an output file ... to append it to??? ... but in perl in the form ...
    (perl.beginners)