updated PROCESSLBATCHMODE to calculate total length of data file