When you are working as layer 2 frame relay switch you must be the side of the link who sets the clock rate.
Here is an easy example of frame-relay switching.
We are going to configure the frame relay switch to use a number x in the interface s1/0 and another different Y in s2/1, routing the traffic from one DLCI to the other.
1 - Router(config)# frame-relay switching
2 - Router(config)#interface s1/0
3 - Router(config-if)#encapsulation frame-relay
4 - Router(config-if)#clock rate 56000
5 - Router(config-if)#frame-relay intf-type dce
6 - Router(config-if)#frame-relay route X interface Serial2/1 Y x=local DLCI interface Y= dlci of the other interface
7 - Router(config-if)#interface s2/1
8 - Router(config-if)#encapsulation frame-relay
9 - Router(config-if)#clock rate 56000
10 - Router(config-if)#frame-relay intf-type dce
11 - Router(config-if)#frame-relay route Y interface Serial1/0 X
