Get Server Name of Current Process in PeopleSoft/PeopleCode

Here’s a PeopleCode snippet that you can use to obtain the server name where a process is being run.

 SQLExec("select servernamerun from psprcsrqst where prcsinstance = :1", &PROCESS_INSTANCE, &servername); 

As mentioned, you’d have to pass the Process Instance to get the server name.

Hope this helps. 🙂

Advertisements

About Manikandan Surendren

A PeopleSoft Techno-functional Consultant. An engineering graduate in Computer Science. Technology Enthusiast. Movie freak. Gadget geek.
This entry was posted in Code, Oracle, PeopleSoft, SQL and tagged , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s