Did not include 9 record in modulus part, so it was accidentally adding 1 to block count if the file didn't need any '999' records. Also changed logic to respect the block count noted in the file header ('1' record), just in case it happened to be something other than 10.
Did not include 9 record in modulus part, so it was accidentally adding 1 to block count if the file didn't need any '999' records. Also changed logic to respect the block count noted in the file header ('1' record), just in case it happened to be something other than 10.