F
PL_
PL_
PL_DES_ENCRYPT({%})
*
      L$$$ = LEN({%1})
      S$ = CALLFN('00':         \
                  {*FNR.87}:                 \ ;* Function code
                  OCONV(L$$$,'MCDX')'R%4':   \ ;* p_no
                  OCONV({%1},'MX0C'):          \ ;* data
                  STR('00',L$$$)             \ ;* pad area
                  )
*
      IF S$[3,4] = IPX.SOCKET.NO THEN
         RES = OCONV(S$[7,4],'MCXD')
         IF RES > 32768 THEN
            RES = RES - 65536
         END
         ERR = 0
      END ELSE
         ERR = 1
         RES = 0
      END
*
      IF ERR OR RES <= 0 THEN
         {R} = ''
      END ELSE
         {R} = ICONV(S$[15,RES*2],'MX0C')
      END
