Add RECFM=N
Simple handling of numerous data file formats, even COBOL EBCDIC.
Brought to you by:
slott56
From the SAS documentation. This will allow processing files which lack BDW and RDW and still have Occurs Depending On clauses.
"To read the file you must use RECFM=N which tells SAS that you are reading a stream of data that will not conform to a typical file structure. SAS will treat the file as a very long single record. Logical record length restrictions are lifted when reading a data stream because SAS does not attempt to buffer the input. You will get a note in the SAS log saying "UNBUFFERED is the default with RECFM=N". This is normal. SAS looks at each INPUT statement and reads only the number of bytes required to satisfy that INPUT statement.
The RECFM=N requires a small change to the API for RECFM and EBCDIC file.