I am having an error when typing in the command 'frame-relay switching' to enable it at the global config mode
 
FrameRelay(config)#frame-relay switching
                   ^
% Invalid input detected at '^' marker.
FrameRelay(config)#interface s2/0
FrameRelay(config)#encapsulation frame-relay 
FrameRelay(config-if)#frame-relay intf-type dce
                                  ^
% Invalid input detected at '^' marker.