I'm getting a set of files from ftp, with fixed size of 135 characters, from a mainframe, we have detected a number of errors in processing these files because same records appear to have different size than expected.
I would like to have a batch that validate the file size and contains special characters (NULLS, low values, /n, ...). Some of the gurus can provide me a batch that do this processing?
My input file will have (first and last record are correct, other have a wrong size):
- 10001821700034095 2ALBANQUE, 435 3-2 4B 7860-160021000001*
10131844006083203 2ATRANSFUE, 3434 2 JJ 7860-160021000001*
10001821700034095 2FALTER, wefe 43 4-89 4A 2685160056700001*
10503895023883403 2LUXER ATREWS, 999 3 1134-154241000054*
It is intended to identify the line 2,3 and 4 have a lower size than expected (135 characters), and get an output with the following information
- #Line 2 - 118 characters
10131844006083203 2ATRANSFUE, 3434 2 JJ
#Line 3 - 18 characters
7860-160021000001*
#Line 4 - 134 characters
10001821700034095 2FALTER, wefe 43 4-89 4A 2685160056700001*
Can I get same help ?
thanks in advance