× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Scott,

Please correct me if I'm wrong, but if, in a program, you swap profiles,
the 'current profile' subfield in the PSDS *in that program* isn't updated
to show the new profile (because the PSDS is only loaded when the program
initializes.

I suspect what Gary meant. But I could be wrong on that (as well).

Rory

On Wed, Jun 20, 2012 at 9:46 AM, Scott Klement <rpg400-l@xxxxxxxxxxxxxxxx>wrote:

Hi Gary,

You can use the QUSRJOBI API. If you perform a profile swap it will
not be reflected in the program status data structure. It will be
reflected in the job's information.


Sorry, this simply isn't true.

I find it odd that you'd say something like this after such luminaries
as Barbara Morris have already pointed out that RPG/400 will show the
current user profile in positions 254-263, and that others (including
Barbara) have pointed out that in ILE RPG, it's in positions 358-367.

So in either version of RPG, you can get the current user profile from
the PSDS, even in a swapped profile environment!

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.