Code: Alles auswählen.
OPEN DATASET path_name IN TEXT MODE ENCODING DEFAULT FOR INPUT
IGNORING CONVERSION ERRORS.
DO.
READ DATASET path_name INTO buffer.
IF sy-subrc <> 0.
EXIT.
ELSE.
IF buffer <> space.
WRITE buffer.
ELSE.
SKIP.
ENDIF.
ENDIF.
ENDDO.
CLOSE DATASET path_name.