Example 1: Accessing the SAP Server from a Local Host

In this example for the z/OS operating environment, the SAS RFC Server has been started on the local host on port 6998. You want to access the SAP system on sapr3srv.sup.com. The system number for the system is 03. Specify the entire set of user information, such as client, user, password, and language. If the SAS RFC Server was started on the SAS system host on port 6999, you do not need to define the host or port because 6999 is the default.
libname mylib r3 user=TEST password=MYPASS client=800 language=EN
     ashost=sapr3srv.sup.com sysnr=03
     host=localhost port=6998;