Appending in a file - VMS

This is a discussion on Appending in a file - VMS ; Hi: Is there any way in VMS to append a file with only one line command ? Anything Like this: $ write f$time() >> file.dat (I'd like avoid use open/append etc...) Thank you !...

+ Reply to Thread
Results 1 to 9 of 9

Thread: Appending in a file

  1. Appending in a file

    Hi:

    Is there any way in VMS to append a file with only one line command ?
    Anything Like this:
    $ write f$time() >> file.dat
    (I'd like avoid use open/append etc...)
    Thank you !


  2. Re: Appending in a file

    In article <1186060603.611891.242210@19g2000hsx.googlegroups.c om>, apogeusistemas@gmail.com writes:
    >
    >
    >Hi:
    >
    >Is there any way in VMS to append a file with only one line command ?
    >Anything Like this:
    >$ write f$time() >> file.dat
    >(I'd like avoid use open/append etc...)
    >Thank you !


    Seems silly but....

    $ PIPE WRITE SYS$OUTPUT "''F$time()'" | APPEND SYS$PIPE FILE.DAT

    FILE.DAT must be created first.

    --
    VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

    "Well my son, life is like a beanstalk, isn't it?"

    http://tmesis.com/drat.html

  3. Re: Appending in a file

    In article <9plsi.23$b72.16@newsfe12.lga>, VAXman- @SendSpamHere.ORG writes:
    >In article <1186060603.611891.242210@19g2000hsx.googlegroups.c om>, apogeusistemas@gmail.com writes:
    >Seems silly but....
    >
    >$ PIPE WRITE SYS$OUTPUT "''F$time()'" | APPEND SYS$PIPE FILE.DAT
    >
    >FILE.DAT must be created first.


    No. Use APPEND/NEW

    --
    Peter "EPLAN" LANGSTOEGER
    Network and OpenVMS system specialist
    E-mail peter@langstoeger.at
    A-1030 VIENNA AUSTRIA I'm not a pessimist, I'm a realist

  4. Re: Appending in a file

    In article <46b24e83$1@news.langstoeger.at>, peter@langstoeger.at (Peter 'EPLAN' LANGSTOeGER) writes:
    >
    >
    >In article <9plsi.23$b72.16@newsfe12.lga>, VAXman- @SendSpamHere.ORG writes:
    >>In article <1186060603.611891.242210@19g2000hsx.googlegroups.c om>, apogeusistemas@gmail.com writes:
    >>Seems silly but....
    >>
    >>$ PIPE WRITE SYS$OUTPUT "''F$time()'" | APPEND SYS$PIPE FILE.DAT
    >>
    >>FILE.DAT must be created first.

    >
    >No. Use APPEND/NEW


    Right! /NEW is create _IF_ it doesn't exist. Sorry, I'm suffering a HUGE
    amount of undue heavy stress here which tends to fog the memory.

    --
    VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

    "Well my son, life is like a beanstalk, isn't it?"

    http://tmesis.com/drat.html

  5. Re: Appending in a file

    On 2 ago, 16:55, VAXman- @SendSpamHere.ORG wrote:
    > In article <46b24e8...@news.langstoeger.at>, pe...@langstoeger.at (Peter 'EPLAN' LANGSTOeGER) writes:
    >
    >
    >
    > >In article <9plsi.23$b72...@newsfe12.lga>, VAXman- @SendSpamHere.ORG writes:
    > >>In article <1186060603.611891.242...@19g2000hsx.googlegroups.c om>, apogeusiste...@gmail.com writes:
    > >>Seems silly but....

    >
    > >>$ PIPE WRITE SYS$OUTPUT "''F$time()'" | APPEND SYS$PIPE FILE.DAT

    >
    > >>FILE.DAT must be created first.

    >
    > >No. Use APPEND/NEW

    >
    > Right! /NEW is create _IF_ it doesn't exist. Sorry, I'm suffering a HUGE
    > amount of undue heavy stress here which tends to fog the memory.
    >
    > --
    > VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM
    >
    > "Well my son, life is like a beanstalk, isn't it?"
    >
    > http://tmesis.com/drat.html



    I use VAX/VMS V5.5-2H4, and it doesn´t haves pipe...
    What do you suggest ?


  6. Re: Appending in a file

    In article <1186088328.113234.93590@x40g2000prg.googlegroups.c om>, apogeusistemas@gmail.com writes:
    >
    >
    >On 2 ago, 16:55, VAXman- @SendSpamHere.ORG wrote:
    >> In article <46b24e8...@news.langstoeger.at>, pe...@langstoeger.at (Peter =

    >'EPLAN' LANGSTOeGER) writes:
    >>
    >>
    >>
    >> >In article <9plsi.23$b72...@newsfe12.lga>, VAXman- @SendSpamHere.ORG wr=

    >ites:
    >> >>In article <1186060603.611891.242...@19g2000hsx.googlegroups.c om>, apog=

    >eusiste...@gmail.com writes:
    >> >>Seems silly but....

    >>
    >> >>$ PIPE WRITE SYS$OUTPUT "''F$time()'" | APPEND SYS$PIPE FILE.DAT

    >>
    >> >>FILE.DAT must be created first.

    >>
    >> >No. Use APPEND/NEW

    >>
    >> Right! /NEW is create _IF_ it doesn't exist. Sorry, I'm suffering a HUGE
    >> amount of undue heavy stress here which tends to fog the memory.
    >>
    >> --
    >> VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)C=

    >OM
    >>
    >> "Well my son, life is like a beanstalk, isn't it?"
    >>
    >> http://tmesis.com/drat.html

    >
    >
    >I use VAX/VMS V5.5-2H4, and it doesn=B4t haves pipe...
    >What do you suggest ?
    >


    $ OPEN/APPEND the_file file.dat
    $ write the_file "''F$time()'"

    --
    VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

    "Well my son, life is like a beanstalk, isn't it?"

    http://tmesis.com/drat.html

  7. Re: Appending in a file

    On Aug 2, 3:58 pm, apogeusiste...@gmail.com wrote:
    > On 2 ago, 16:55, VAXman- @SendSpamHere.ORG wrote:
    >
    >
    >
    > > In article <46b24e8...@news.langstoeger.at>, pe...@langstoeger.at (Peter 'EPLAN' LANGSTOeGER) writes:

    >
    > > >In article <9plsi.23$b72...@newsfe12.lga>, VAXman- @SendSpamHere.ORG writes:
    > > >>In article <1186060603.611891.242...@19g2000hsx.googlegroups.c om>, apogeusiste...@gmail.com writes:
    > > >>Seems silly but....

    >
    > > >>$ PIPE WRITE SYS$OUTPUT "''F$time()'" | APPEND SYS$PIPE FILE.DAT

    >
    > > >>FILE.DAT must be created first.

    >
    > > >No. Use APPEND/NEW

    >
    > > Right! /NEW is create _IF_ it doesn't exist. Sorry, I'm suffering a HUGE
    > > amount of undue heavy stress here which tends to fog the memory.

    >
    > > --
    > > VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

    >
    > > "Well my son, life is like a beanstalk, isn't it?"

    >
    > >http://tmesis.com/drat.html

    >
    > I use VAX/VMS V5.5-2H4, and it doesn´t haves pipe...
    > What do you suggest ?


    There's the freeware ADV_PIPE

    available here:


    or here:


    If you can't use freeware on your system, but you insist on having a
    one-liner, put the DCL commands in a .com file and assign it as a
    foreign command.


  8. Re: Appending in a file

    On 2 ago, 19:15, Doug Phillips wrote:
    > On Aug 2, 3:58 pm, apogeusiste...@gmail.com wrote:
    >
    >
    >
    >
    >
    > > On 2 ago, 16:55, VAXman- @SendSpamHere.ORG wrote:

    >
    > > > In article <46b24e8...@news.langstoeger.at>, pe...@langstoeger.at (Peter 'EPLAN' LANGSTOeGER) writes:

    >
    > > > >In article <9plsi.23$b72...@newsfe12.lga>, VAXman- @SendSpamHere.ORG writes:
    > > > >>In article <1186060603.611891.242...@19g2000hsx.googlegroups.c om>, apogeusiste...@gmail.com writes:
    > > > >>Seems silly but....

    >
    > > > >>$ PIPE WRITE SYS$OUTPUT "''F$time()'" | APPEND SYS$PIPE FILE.DAT

    >
    > > > >>FILE.DAT must be created first.

    >
    > > > >No. Use APPEND/NEW

    >
    > > > Right! /NEW is create _IF_ it doesn't exist. Sorry, I'm suffering a HUGE
    > > > amount of undue heavy stress here which tends to fog the memory.

    >
    > > > --
    > > > VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

    >
    > > > "Well my son, life is like a beanstalk, isn't it?"

    >
    > > >http://tmesis.com/drat.html

    >
    > > I use VAX/VMS V5.5-2H4, and it doesn´t haves pipe...
    > > What do you suggest ?

    >
    > There's the freeware ADV_PIPE
    >
    > available here:
    >
    >
    > or here:
    >
    >
    > If you can't use freeware on your system, but you insist on having a
    > one-liner, put the DCL commands in a .com file and assign it as a
    > foreign command.- Ocultar texto entre aspas -
    >
    > - Mostrar texto entre aspas -


    I have adv_pipe in my system, but how append in a file ?


    VAX1 » pipe sh day > x.x
    VAX1 » ty x.x
    2-AUG-2007 21:26:39
    VAX1 » pipe sh day > x.x
    VAX1 » ty x.x
    2-AUG-2007 21:26:43
    VAX1 » pipe sh day >> x.x
    Syntax error
    VAX1 »


  9. Re: Appending in a file

    On Aug 2, 7:31 pm, apogeusiste...@gmail.com wrote:
    > On 2 ago, 19:15, Doug Phillips wrote:
    >
    >
    >
    > > On Aug 2, 3:58 pm, apogeusiste...@gmail.com wrote:

    >
    > > > On 2 ago, 16:55, VAXman- @SendSpamHere.ORG wrote:

    >
    > > > > In article <46b24e8...@news.langstoeger.at>, pe...@langstoeger.at (Peter 'EPLAN' LANGSTOeGER) writes:

    >
    > > > > >In article <9plsi.23$b72...@newsfe12.lga>, VAXman- @SendSpamHere.ORG writes:
    > > > > >>In article <1186060603.611891.242...@19g2000hsx.googlegroups.c om>, apogeusiste...@gmail.com writes:
    > > > > >>Seems silly but....

    >
    > > > > >>$ PIPE WRITE SYS$OUTPUT "''F$time()'" | APPEND SYS$PIPE FILE.DAT

    >
    > > > > >>FILE.DAT must be created first.

    >
    > > > > >No. Use APPEND/NEW

    >
    > > > > Right! /NEW is create _IF_ it doesn't exist. Sorry, I'm suffering a HUGE
    > > > > amount of undue heavy stress here which tends to fog the memory.

    >
    > > > > --
    > > > > VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)COM

    >
    > > > > "Well my son, life is like a beanstalk, isn't it?"

    >
    > > > >http://tmesis.com/drat.html

    >
    > > > I use VAX/VMS V5.5-2H4, and it doesn´t haves pipe...
    > > > What do you suggest ?

    >
    > > There's the freeware ADV_PIPE

    >
    > > available here:
    > >

    >
    > > or here:
    > >

    >
    > > If you can't use freeware on your system, but you insist on having a
    > > one-liner, put the DCL commands in a .com file and assign it as a
    > > foreign command.- Ocultar texto entre aspas -

    >
    > > - Mostrar texto entre aspas -

    >
    > I have adv_pipe in my system, but how append in a file ?
    >
    > VAX1 » pipe sh day > x.x
    > VAX1 » ty x.x
    > 2-AUG-2007 21:26:39
    > VAX1 » pipe sh day > x.x
    > VAX1 » ty x.x
    > 2-AUG-2007 21:26:43
    > VAX1 » pipe sh day >> x.x
    > Syntax error
    > VAX1 »


    It's been a while since I last used adv_pipe, and I don't have it
    handy on any system. Use the pipe separator to cause the output of a
    command to be avaialable as the input to the next. VMS's sys$output is
    equiv to *nix's stdout and sys$input is equiv to stdin. You don't want
    to "redirect" the output, you want to "pipe" it.

    Try the command some others gave you, except substitute sys$input for
    sys$pipe

    $pipe write sys$output "''f$time()'" | append/new sys$input x.x

    Otherwise, if that doesn't work, you'll need to read the help.


+ Reply to Thread