Note: This was originally posted by an inactive account. Content was preserved by moving under an admin account.
Originally posted by: stonysmithIt appears to me that it would depend upon how many input records you have.
I would not read inRec in the initialize code. You are "consuming" the first record without acting on it. Line 23 reads another record from the file and you are losing the first record. Caveat: you could move line 23-24 after line 27. But, to do that, you should persist the inRec value... use self.inRec instead of just inRec
Also.. you deleted the "return True" that belongs in the pump routine. That may be affecting your results.
inRec is an object (array of values). There's no need to close it nor set it to null, etc.
=====
your processParse routine is only returning a True value.. if wish to return False you need to do so.
Python variables are, by default local to their subroutine.
Line 30 refers to a variable "success" that is local to that routine only.. it is not setting the value on line 27