Posted: Sat Mar 12, 2016 11:39 pm Post subject: Read only Header and Trailer record from Input File
Please provide logic to read only header and trailer record from input file and write into Output File.
Step 1: Read Header record (Always first record is header)
Step 2: For Header record Process the logic
Step 3: Write all Detail records as it is into Output File without processing any logic
Step 4: For Trailer Record Process the logic, and write the count into the Output File as one field in Output Trailer record (Note: Output Trailer record layout is different from Input Trailer record Layout)
Please any one help me on this where we have to process only first and last records only
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum