Al; If you don't want to create the extra VOC entry you can put the entire path in the OPENSEQ statement:
OPENSEQ 'C:\OUTPUT\APCHECKS999' TO OUTFILE THEN Or FPATH = 'C:\OUTPUT\' FNAME = 'APCHECKS9999' OPENSEQ FPATH:FNAME TO OUTFILE THEN I just find the VOC method easier as I have a lot of programs and the path can be quite different.... Hth Colin Alfke Calgary, Canada -----Original Message----- From: Al DeWitt This is what finally worked. I was hoping to do it w/o having to create a VOC entry, but that was not to be. Thank you all for your help. Al DeWitt -----Original Message----- From: Colin Alfke Al; I use the following code: OPENSEQ 'OUTPUT.FILE', 'APCHECKS9999' TO OUTFILE THEN CRT 'APCHECKS9999 ALREADY EXISTS' STOP END * code to build each line goes here MORE.DATA = 1 LOOP WHILE MORE.DATA DO LINE = 'data' 'L#9':MORE.DATA 'L#25':'still more data' 'L#20' WRITESEQ LINE APPEND ON OUTFILE ELSE CRT 'NOT AT END OF APCHECKS9999' MORE.DATA += 1 IF MORE.DATA >= 25 THEN MORE.DATA = 0 REPEAT CLOSESEQ OUTFILE Hth Colin Alfke Calgary, Canada -----Original Message----- From: Al DeWitt I GET THE FOLLOWING MESSAGE [FATAL ERROR: - Cannot open file C:\OUTPUT\APCHECKS1002] and I'm sent to the colon prompt. Al DeWitt -----Original Message----- From: Al DeWitt I forgot to mention that I'm on Windows. My output path is: C:\OUTPUT\ My file name isAPCHECKS9999 where is a counter that gets incremented each time the program is run. FNAME would be C:\OUTPUT\APCHECKS9999 so that my statement would read: OPENSEQ FNAME TO OUTFILE... However, since APCHECKS9999 would be unique each time it doesn't exist. BTW when I try to display OUTFILE it gives me an Unitialized Variable, zero assumed error. Al DeWitt _______________________________________________ U2-Users mailing list [email protected] http://listserver.u2ug.org/mailman/listinfo/u2-users
