I have an input file as below,
OPCDAILY1 1106061655 C
OPCDAILY2 1106081027 S
OPCDAILY3 1106081027 C
OPCDAILY4 1106081027 E
OPCDAILY5 1106081027 C
OPCDAILY6 1106081027 C
output file should be:
application OPCDAILY4 ended in error
Input file is FB, reclen 80. 3 fields are from pos 1-16, 17-28, 29.
Even if one record has E in pos 29, output should say 'application ended in error' irrespective of other record's pos 29.
if any of the record has E at pos 29, the output file should have 'application xxx(pos 1-16) ended in error'.
if any of the record has S at pos 29, the output file should have 'jobs are started'
only if all the records has C at pos 29, the output file should have 'jobs are complete'.