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 [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
