I need to extract the text file which has fixed width fields containing header,line and batch related data . Now the initial fileds in each row has a flag like H or L or B respectively. I need to desiugn the job to split the data into 3 files containing header data only,line data and batch data only using the flag .
Thanks for your suggestion, I have tried to split the source txt file into 3 files using cobol copybook as per the example.
I have created the cpy file and record trailer length as 2
but unable to get the proper output, i have set all the format,data file exactly same like the example given.
Please help me how to get the 3 different file Header, line and batch
I really appreciate your support and help. But I am unable to solve my issue.
I have tried to split the source txt file into 3 files using cobol copybook as per the example you have shared with the link.
I have created the cpy file and record trailer length as 2
but unable to get the proper output, i have set all the format,data file exactly same like the example given.
Please help me how to get the 3 different file Header, line and batch