@HPietschmann schrieb:
Hallo,
wir haben folgendes Problem. In einem SAS-Programm haben wir folgenden Code implementiert:
DATA LIB.XY;
INFILE "ab.sas7bdat";
RUN;
Daraufhin erscheint an dieser Stelle die Fehlermeldung:
ERROR: Datei wird verwendet.
The data step code as shared will not return the error message as shared. Please show us the actual SAS log that includes both the error message and the actual code that's thrown the error.
The INFILE statement gets used to define an external file (not a SAS table/file with extension .sas7bdat).
You need to use a SET statement for tables.
data want;
set <libref>.<table name>;
run;
If the libref is not WORK it must be pre-defined via a LIBNAME statement. The libref is the "pointer" to a location that contains tables (for example a folder that contains *.sas7bdat files).