Here is what I know about using Yamaha arranger keyboards with Sonar:
• Purchased songs generally do not send MIDI out through the ports. It is a type of copy protection.
• You can, however, create a song using Yamaha styles--not the same as a purchased song--save the song to a USB stick, and then load that into Sonar. This is good to know because if you try to use a simple patch command in Sonar, you won't get all the effects that are built into a Yamaha sound. However, if you select the sound/patch from the keyboard and then save that song to a stick, when you load it into a sequencer like Sonar, you will get all the sysex and commands that call up the sound with all its effects. I have sometimes created "songs" in the Tyros that are nothing but button pushes to call up sounds with DSP effects.
• When you use the keyboard with Sonar, you will proably need to turn LOCAL OFF on the keyboard before brining up Sonar or things will get wierd. Conversely, to use the styles and create a song on the keyboard with LOCAL ON (normal mode), you should have Sonar off or disconnected—and you may need to reboot the keyboard.
This is other stuff than what you asked, but you may find it helpful. I have a Tyros 2 that has an excellent set of sounds and I use it frequently. I have also sketched out some songs using styles, loaded them into Sonar, and then made some good tracks by changing them around, adding other stuff, etc.