Storing key value pairs in environment of an application server - Forum - Knowledge Base - Progress Community

Storing key value pairs in environment of an application server

 Forum

Storing key value pairs in environment of an application server

  • Hallo,

    for each application server I want to store some specifc values. For that purpose I have opened the application server using fathom. I have modified the configuration switched to the Environment Variables and added the key value pair MailSender=ksi@spi.de to the environment.

    Now I want to retrieve the value in an ABL-procedure. Has anyone an idea how to do? Unfortunetely I have not found any hints in the documentation.

    Kind regards

    Kai Siegele

  • Hi Kai,
     
    I think that OS-GETENV(“MailSender”) would get what you want.
     
    Brian

  • Hallo Brian,

    thanks for your quick reply.

    That was my first idea too but unfortunately i have got an empty string (?). I already have given MailSender="ksi@spi.de"

    and MailSender=ks@spi.de a try, both without success.

    Have I made a mistake?

    Kind regards

    Kai Siegele

  • Hi Kai,
     
    Are you using ClassicAppServer or PASOE?
     
    Brian

  • Hallo Brian,

    it's the ClassicAppServer.

    Kind regards

    Kai

  • Hallo Brian,

    we have solved the problem. When inserting a ~ just before the @ getting the content with OS-GETENV everything works.

    Kind regards

    Kai