Announcement Announcement Module
Collapse
No announcement yet.
getting the last record or couting number of records Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • getting the last record or couting number of records

    Hi All Spring batch user,

    I have .txt file coming as resource and i am getting each record using separator polity.
    Getting one record at a time from the file
    Processing that record with logic and getting output as SUCCESS or FAILURE.
    Appending ID to it - so it will be ID+SUCCESS+COMMA or ID+FAILURE+COMMA

    For example :

    1SUCCESS,
    2SUCCESS,
    3SUCCESS,

    Now the issue is the comma is appended at the last string value - I do not want to append the comma if it is last record.

    is there any way to identify the last processing record so that i can skip the appending comma there??
Working...
X