Hello, Does it hapen only in the head of the file or many times? If yes, i think this code can help: data test; infile datalines dlm="|" firstobs=21; input CoCd $ Year $ Period $ Doc_no_ $ Doc_Type $ Pstgdate $ Entrydte $ Time $ Documentheadertext $ Reference $ Username $ Itm $ D_C $ G_Lacct $ FA $ Amount $ Curr_ $ Loc_curr_amount $ Curr_ $ LC2amount $ LCur2 $ Text $ S $ Parkedby $ Tcod $; datalines; |Data statistics|Number of| |-------------------------| |Records passed | 1.206| --------------------------- 21.12.2011 Document Extract for Auditors - all journals 2 --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- Document Extract for Auditors - all journals --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |CoCd|Year|Period|Doc.no. |Doc. Type|Pstg date |Entry dte |Time |Document header text |Reference |User name |Itm|D/C|G/L acct|FA | Amount|Curr.|Loc.curr.amount|Curr.| LC2 amount|LCur2|Text |S|Parked by|Tcod| |-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| |6200|2012| 02|900000019 |AB |13.10.2011|13.10.2011|20:02:02|Autom.clearing SAPF124 | |S00000002 |001|H |102419 | | 0,00 |EUR | 0,00 |EUR | 21,15 |USD | | | |FB1S| ; run; When you say "these occur at regual intevals in the file". How many times does it hapen in the file?
... View more