{"success":true,"data":{"ext":"sas7bdat","name":"SAS7BDAT","description":"SAS7BDAT is a binary data set file format created and maintained by SAS Institute for storing structured datasets. It is used primarily by SAS software for statistical analysis, data management, reporting, and interchange between SAS and compatible analytical tools. The format is generally safe, though files from untrusted sources should be handled with standard caution because they may contain large or malformed data structures; it remains a long-standing, proprietary SAS format.","mime":["application/x-sas-data"],"risk_level":"Safe","signatures":[{"hex":"53 41 53 20 46 49 4C 45","offset":84,"sources":[{"name":"Apache Tika","url":"https://raw.githubusercontent.com/apache/tika/main/tika-core/src/main/resources/org/apache/tika/mime/tika-mimetypes.xml"}]}],"related":["sd7","sd2"],"usage":{"python":"def is_sas7bdat(file_path: str) -> bool:\n    \"\"\"Check if file is a valid SAS7BDAT by magic bytes at offset 84.\"\"\"\n    signature = bytes([0x53, 0x41, 0x53, 0x20, 0x46, 0x49, 0x4C, 0x45])\n    with open(file_path, \"rb\") as f:\n        f.seek(84)\n        return f.read(8) == signature","node":"function isSAS7BDAT(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x53, 0x41, 0x53, 0x20, 0x46, 0x49, 0x4C, 0x45]);\n  if (buffer.length < 92) return false;\n  return buffer.subarray(84, 92).equals(signature);\n}","go":"func IsSAS7BDAT(data []byte) bool {\n    signature := []byte{0x53, 0x41, 0x53, 0x20, 0x46, 0x49, 0x4C, 0x45}\n    if len(data) < 92 {\n        return false\n    }\n    return bytes.Equal(data[84:92], signature)\n}"}}}