socket connection inside an in-bound pre-TPS tcl proc

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf socket connection inside an in-bound pre-TPS tcl proc

  • Creator
    Topic
  • #49843
    Sundeep Kumar
    Participant

      We have a need to make a socket connection to get add couple of bytes of data from a host based on account number in a transaction. How does socket connection from inside TPS proc perform ? Any one used this approach and has recommendations ?

    Viewing 0 reply threads
    • Author
      Replies
      • #63830
        John Mercogliano
        Participant

          I am on 5.2 and from what I’ve seen you can not use the socket command from within a tps.  It will work fine in the testing tool but you will receive a -1 error when run in a thread.  I’m assuming that QDX has it disabled in a running process. I found this out when I attempted to use the smtp package from tcllib directly in a tps.  

          You can create a stand alone tcl program that you can exec to get the value you need and return it in a tps.  That works fine.

          John Mercogliano
          Sentara Healthcare
          Hampton Roads, VA

      Viewing 0 reply threads
      • The forum ‘Cloverleaf’ is closed to new topics and replies.