Routines (alphabetical) > Routines: C > CDF Routines > CDF_SET_VALIDATE

# CDF_SET_VALIDATE

The CDF_SET_VALIDATE procedure ensures that file data values are validated when CDF files are opened. The purpose of data checking is to uncover security problems (buffer overflow, for example) caused by compromised CDF files. The data validation process involves extra processing overhead, so turn data checking off if the files are known to be clean and uncompromised.

## Examples

; Do not perform data validation when CDF files are opened.

CDF_SET_VALIDATE, /NO

id = CDF_OPEN('myfile.cdf')

; Process your CDF data

. . .

CDF_CLOSE, id

## Syntax

CDF_SET_VALIDATE [, /YES | /NO]

## Keywords

### NO

Set this keyword to bypass data checking when CDF files are opened.

### YES

Set this keyword to check file data when CDF files are opened. This is the default behavior.

## Version History

8.0 | Introduced

## See Also

CDF_CONTROL, CDF_INQUIRE, CDF_VARINQ