Can some one help me please?
need to check first 3 digits, if it is non-zero(NZ) then in output it has NZ, if it is zero(ZE) then at end of the record it has to display ZE
my i/p is like below
111 AAA
222 BBB
000 CCC
333 DDD
000 EEE
222 BBB
000 CCC
333 DDD
000 EEE
Expected output
111 AAA NZ
222 BBB NZ
000 CCC ZE
333 DDD NZ
000 EEE ZE
222 BBB NZ
000 CCC ZE
333 DDD NZ
000 EEE ZE