Hey Saul,
Both routing protocols are implemented in a TCP/IP sub-task/address space: OMPROUTE.
Check out the z/OS Communications Server: z/OS 3.1 Communications Server: IP Configuration Guide and z/OS Communications Server: z/OS 3.1 Communications Server: IP Configuration Reference manuals for details.
OMPROUTE can be run as an MVS started procedure, from the z/OS shell, or from AUTOLOG - your choice. Personally I prefer to run it as an MVS started procedure because that's what I"m most accustomed to working with. You should be able to find sample JCL for OMPROUTE in TCPIP.SEZAINST(OMPROUTE) (or whatever dataset name standard your installaing is using for TCPIP installation datasets).
------------------------------
J Robert Garrett
------------------------------