I have a program that does roughly this

DONE=0; FIRST =1
LOOP READNEXT ID ELSE DONE=1 UNTIL DONE DO
 BR=FIELD(ID,'*',2)
 BEGIN CASE
  CASE FIRST
   FIRST=0
   SP-ASSIGN ......
   PRINTER ON
   HEADING ......
   LA.BR=BR
  CASE LA.BR#BR
   PRINTER OFF; PRINTER CLOSE
   SP-ASSIGN .........
   PRINTER ON
   HEADING .....
   LA.BR=BR
 END CASE
 .......
REPEAT

problem is that the program is confused about where it is on a page.
Instead of re-setting all its variables after closing the printer, it
thinKs that on the 2nd job that it it does not need to print a heading
at the top since it is still in the middle of the previous page. It
then page breaks at the wrong point, etc.

Is there a simple known fix?  (Does issuing a PAGE 0 command help?) Or
do I need to re-write using line counters rather than HEADING
commands?

thanks

--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to