You can use the CONTENTS procedure
(or the CONTENTS statement in PROC DATASETS) to find out the format
of the specified SAS file.
Here is an example of
the code:
proc contents data=grades;
run;
An excerpt of the output follows:
Data Representation HP_UX_64, RS_6000_AIX_64, SOLARIS_64, HP_IA64
In the preceding example,
the output shows that the file is represented in UNIX format.
If the target computer
uses a format that is the same as the file format, then you can read,
write, and update the file.
Note: No additional resources are
consumed.
If the target computer
uses a format that is different from the file format (in this example,
UNIX), you can read and write, but you cannot update the files.
Note: Additional resources are
consumed each time you read a foreign file.