Re: [U2] One print job or many print jobs
On 10/04/2013 18:56, Dianne Ackerman wrote: In my experience, the 2nd statement will overwrite the first statement unless you use that setptr keyword BANNER NEXT, which will then append a number onto the hold name so that each would have its own unique hold name. -Dianne The alternative to BANNER NEXT is, iirc KEEP. This will keep the print file open until the next SETPTR, so you will get the two listings one after the other in the same file. Another trick I used to make extensive use of, every time I used special SETPTR characteristics, I would use a dedicated print channel. iirc it's the first number of the SETPTR command, so I would do SETPTR 1, and then do a LIST ON 1 ... command. The main, very useful, trick behind this was a basic program could scan a file printing 3 or 4 reports in one pass, suchh as a detailed report, a summary report and an error report, without having to cache all the data and save the printing to the end. Cheers, Wol ___ U2-Users mailing list U2-Users@listserver.u2ug.org http://listserver.u2ug.org/mailman/listinfo/u2-users
Re: [U2] One print job or many print jobs
In my experience, the 2nd statement will overwrite the first statement unless you use that setptr keyword BANNER NEXT, which will then append a number onto the hold name so that each would have its own unique hold name. -Dianne On 4/10/2013 1:49 PM, Wjhonson wrote: I'm running Universe on Windows 7 Under the following scenarios what would you expect to happen. In a BASIC program, you EXECUTE a SETPTR using mode 3 and a hold file name say Clambake You then, in the same BASIC program EXECUTE a LIST statement, and then EXECUTE another LIST statement Will the results of the two separate LIST statements, be head-to-butt in the same named hold entry? Will the second LIST statement overwrite the first output and thus be alone in the named hold entry? Or will the second LIST statement perhaps just start spewing out on the default printer, not going to the hold file at all? What if instead of EXECUTEing the SETPTR inside the BASIC program, you do it in the paragraph before you run the BASIC program? Will the end result be different? That is, will the two LIST statements now output differently then they did the first time? Will Johnson ___ 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