Hi All,
I have a fb file. in which one of the fields is "name" field (40 bytes length, starting position: 5). name field should start only with alphabets and trailing byte can have only dot or alphabets.
In other words, leading special characters/spaces must be removed; trailing special chars other than dot must be removed. whatever comes in between must be preserved.
Input:
1234*LAURA ANDERSON INC
1275 HARRY PETER,
1734" ER BHAR DIGITAL TRADE
4127' AUTO TRADE PACIFIC INC,,,,
1745"* AUTO CARE MOBILE INC,,,,...
0099OLIVER J. CLAURA & ASSOCIATES,
0456, INC
Output:
1234LAURA ANDERSON INC
1275HARRY PETER
1734ER BHAR DIGITAL TRADE
4127AUTO TRADE PACIFIC INC
1745AUTO CARE MOBILE INC,,,,...
0099OLIVER J. CLAURA & ASSOCIATES
0456INC
Could you please give some idea to try it out. As of now i tried using JFY=(SHIFT=LEFT) for removing leading spaces. but unable to get logic to remove any leading/trailing special chars. i wanted to try regular expression. unfortunately my company has V2R3 only
OPTION COPY
OUTFIL PARSE=(%00=(FIXLEN=4),
%01=(STARTAT=MC,FIXLEN=40)),
BUILD=(%00,%01)