Attached is a Pronto.ccf file with functions 0 through 161 for NEC1:51.0. That is the protocol:device.sub-device that the the Sanyo Z2 uses. That ccf file is labeled by function number. There are many more function numbers than you need and you can re-label them and delete the ones not listed below.
The known commands with "function" number in the left hand column are:
000 Power
005 Input
012 Image (Adj.)
014 Image (z1)
015 Select
024 Lamp (Lamp Mode)
028 Menu
029 Right Arrow
030 Left Arrow
031 Standard (Image)
060 My-P (My Picture)
061 Video
062 S-video
063 Auto
080 1 (Image)
081 2 (Image)
086 3 (Image)
087 4 (Image)
088 P-Im (Image_ Preset)
130 Scr (Screen)
131 Component
137 Auto PC
139 No Show
140 Up Arrow
141 Down Arrow
142 Keystone +
143 Keystone -
160 Power On
161 Power Off
For the Sharp VCR, IIRC, they use the Sharp brand on a number of VCR's made by others. So learn the commands from the OEM remote.
sanyo_z2_0_to_161.zip 6.1171875k . file