According to a Northern Railway spokesperson, 22 trains to Punjab and 7 to Haryana have been cancelled. The trains would have made 74 trips over the next four days.
"We had received a request from the Haryana government to cancel trains in the state in view of apprehensions on the law and order front," he said.
The spokesman said no such request was received from the Punjab government.
Ram Rahim said earlier in Chandigarh that he will appear in person before the court and appealed to his followers to maintain peace.
The case was registered against the Dera chief in 2002 by the Central Bureau of Investigation (CBI) on the directions of the Punjab and Haryana High Court after anonymous letters were circulated about the alleged sexual exploitation of two 'sadhvis' (female followers) against him.
Ram Rahim has, however, denied the charges.