I've been using DOS since 1.0 - forgot all about pipe.... didn't it used to be | ?

btw, even though I'm the admin on my laptop, it will not allow me to even use notepad to save to c:\buddy.txt

Must be a new windows 7 thing.....

On 9/9/2010 10:50 AM, Colin Alfke wrote:
If you had the proper permissions you would have had a buddy.txt file with:
ECHO is on.
in the file. The '>' redirects the output to the file indicated (creates it
if it doesn't exist or overwrites it if it does). I use it to create a log
from a batch file:
Date /t>  batchfile.log
Time /t>>  batchfile.log

The '>>' will append the output to the file.

So, in the example he would likely want to do the WEOFSEQ SEQFILE to reset
the record (although that will create the file as well so you might as well
just do that...) Now that we're getting picky - the ABORTM statement doesn't
exist in UniData either so you would need to use ABORT or STOP.

Hth
Colin Alfke
Calgary Canada

-----Original Message-----
From: Allen Elwood RR

How does this create a file?  I've always code similar to the method
David Green showed, since that works on all pick flavors instead of
having to change my code every time I move to a different system.....

C:\Users\AllenElwood>help echo
Displays messages, or turns command-echoing on or off.

    ECHO [ON | OFF]
    ECHO [message]

Type ECHO without parameters to display the current echo setting.

C:\>echo>c:\buddy.txt
Access is denied.

On 9/9/2010 9:47 AM, Rex Gozar wrote:
OPENSEQ PATH TO SEQFILE THEN
    WEOFSEQ SEQFILE ON ERROR
       ABORTM "WEOFSEQ FAILED!"
    END
END ELSE
    * instead of CREATE statement (on Windows)
    PCPERFORM "echo>":PATH
    OPENSEQ PATH TO SEQFILE ELSE
       ABORTM "OPENSEQ FAILED!"
    END
END

_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users


_______________________________________________
U2-Users mailing list
U2-Users@listserver.u2ug.org
http://listserver.u2ug.org/mailman/listinfo/u2-users

Reply via email to