The witness does not have to appear unless the witness is a resident of the state. However, compliance is required if the witness is a custodian of records and the subpoena does not require personal appearance. (CCP 1989, 1987.3)