I am looping through a list of clients and for each one doing a SQL call and writing the results to a dynamically named file that includes the clients name. The top of page format is used in the first file, but in the second file it doesn't show up until page 2. I have checked the value of $- and it is 0 which is supposed to cause the top of page format to be used. I explicitly closed the first file before opening the 2nd. What could be causing this?
Red Flag Submitted
Thank you for helping keep Tek-Tips Forums free from inappropriate posts. The Tek-Tips staff will check this out and take appropriate action.
Reply To This Thread
Posting in the Tek-Tips forums is a member-only feature.