I have a flat file like this:
1|sal|manager|2007/01/01|2007/12/31
2|sal|manager|2008/01/01|2008/12/31
3|per|abc|manager
4|sal|manager|2007/01/01|2007/12/31
5|per|xyz|ceo
I have to read the file using COBOL
, and write the rows that has the string sal
into a temp file.
Is unstring
a good option? Please suggest me an approach to solve this problem.
Thanks in advance.