I have a variable length file which shows up on the mainframe as depicted under "input" below.
There appear to be periods between variables, which I think are unprintable characters that represent tabs.
The reason I think this is that when I do a search for "." the only instances the search finds are the decimal points
in the 13th variable. There are some fields where every value is blank (e.g., the 3rd variable).
I would like to turn the file into a fixed length file, where each instance of a given variable starts in the same column (e.g. the id starts in column 1, the location starts in column 10 and so on). (The output below is not showing up exactly as I want it to because of the variable spacing of the font.)
Any help you can give would be greatly appreciated.
Thank you.
Cindy
input
200000001.01M450..2009.2010.2.MO7AW.2.04.1.0.97.0.50.A.P.M.3
200000002.01M450..2009.2010.1.GG07.3.05.1.0.92.0.50.A.P.M.9
200000003.01M450..2009.2010.1.MO8AW.3.01.1.0.92.1.00.A.P.M.3
200000004.01M450..2009.2010.1.PEO7.3.01.1.0.92.0.58.A.P.M.8
200000002.01M450..2009.2010.1.GG07.3.05.1.0.92.0.50.A.P.M.9
200000003.01M450..2009.2010.1.MO8AW.3.01.1.0.92.1.00.A.P.M.3
200000004.01M450..2009.2010.1.PEO7.3.01.1.0.92.0.58.A.P.M.8
desired output
200000001 01M450 2009 2010 2 MO7AW 2 04 1 0 97 0.50 A P M 3
200000002 01M450 2009 2010 1 GG07 3 05 1 0 92 0.50 A P M 9
200000003 01M450 2009 2010 1 MO8AW 3 01 1 0 92 1.00 A P M 3
200000004 01M450 2009 2010 1 PEO7 3 01 1 0 92 0.58 A P M 8
200000002 01M450 2009 2010 1 GG07 3 05 1 0 92 0.50 A P M 9
200000003 01M450 2009 2010 1 MO8AW 3 01 1 0 92 1.00 A P M 3
200000004 01M450 2009 2010 1 PEO7 3 01 1 0 92 0.58 A P M 8
"Code'd"