ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

ODBC user name for Email

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • ODBC user name for Email

    Hi All:

    I have a process that loads a file via an ODBC connection. After the file is loaded I want to send the user an Email.
    How do i retrieve the USERID who origionally initiated the odbc connection?
    I don't want to send the email to QUSER.

    Thanks
    GLS
    The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

  • #2
    Re: ODBC user name for Email

    QUSER would likely be the "job user". You would most likely want the "current user". What program language are you using to retrieve a user's identity?
    Tom

    There are only two hard things in Computer Science: cache invalidation, naming things and off-by-one errors.

    Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?

    Comment


    • #3
      Re: ODBC user name for Email

      Thanks Tom:

      I was using RPG's program status data structure positions 254-263.
      I'll try the current users profile positions 358-367.
      I'll let you know how it turns out

      Thanks again
      GLS
      Last edited by GLS400; March 17, 2015, 07:08 AM.
      The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

      Comment


      • #4
        Re: ODBC user name for Email

        Maybe this is all you need in your RPG:

        Code:
        d currUser        s             10a   inz(*user)

        Comment


        • #5
          Re: ODBC user name for Email

          @tom....Thanks that worked perfectly
          @viking....Thanks it looks like that would have worked as well

          GLS
          The problem with quotes on the internet is that it is hard to verify their authenticity.....Abraham Lincoln

          Comment

          Working...
          X