You have to start the ISPF workstation agent first.
/* rexx */
ip = 'pedro.abc.com'
title = 'PEDRO'
Address ISPEXEC
"WSCON ip(ip) title(title) codepage(1140) ",
"charset(0695) noguidsp panel(onerror)"
wsname = "C:/Windows/Media/Ringout.wav"
"SELECT WSCMD("wsname") MODELESS MIN INVIS"
"WSDISCON"
ip = 'pedro.abc.com'
title = 'PEDRO'
Address ISPEXEC
"WSCON ip(ip) title(title) codepage(1140) ",
"charset(0695) noguidsp panel(onerror)"
wsname = "C:/Windows/Media/Ringout.wav"
"SELECT WSCMD("wsname") MODELESS MIN INVIS"
"WSDISCON"
This example launches the media player and plays the wave file. The file name can be other types. For example, if you specify the name of an html file, it will launch your browser to display that page. The file has to exist on your workstation.