× 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.



Thanks for that info, I assumed that the release would put
me back to my original User Profile
I changed my program to set my profile back and it works
fine.

Thanks for the help, 

Allen

 
 
 

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx
[mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Ed
Fishel
Sent: Thursday, May 04, 2006 8:44 AM
To: Midrange Systems Technical Discussion
Subject: Re: PLEASE HELP with QSYGETPH QWTSETP QSYRLSPH

Allen wrote on 05/04/2006 06:31:34 AM:

> I have done this before, but I seem to be missing
something
> and cannot figure out the problem
> I am hoping someone will spot what I am overlooking
> I am running V5R1M0
> *PUBLIC has *USE authority to QSYGETPH QWTSETP QSYRLSPH
> USR01 has *USE Authority to Profile USR02
> USR02 has *USE authority to Profile USR01
>
> I have a test program where I am doing the following:
> Signed on as USR01
> Get a profile handle for USR01
> Get a profile handle for USR02
> Switch to profile handle for USR02
> Test User Profile by attempting to Display a file
> Release profile handle for USR01
> Release profile handle for USR02
> Test User Profile by attempting to display a file
>
> This 2nd test fails because I am still running under USR02
> When this program finishes, the job us still running under
> profile USR02
> It does not return me back to USR01

This program does not return the job back to USR01 because
it never uses
the profile handle for USR01 to switch to that profile. The
release profile
handle operation just frees up system resources it does not
switch the
profile handle.

Ed Fishel,
edfishel@xxxxxxxxxx

Allen wrote on 05/04/2006 06:31:34 AM:

> I have done this before, but I seem to be missing
something
> and cannot figure out the problem
> I am hoping someone will spot what I am overlooking
> I am running V5R1M0
> *PUBLIC has *USE authority to QSYGETPH QWTSETP QSYRLSPH
> USR01 has *USE Authority to Profile USR02
> USR02 has *USE authority to Profile USR01
>
> I have a test program where I am doing the following:
> Signed on as USR01
> Get a profile handle for USR01
> Get a profile handle for USR02
> Switch to profile handle for USR02
> Test User Profile by attempting to Display a file
> Release profile handle for USR01
> Release profile handle for USR02
> Test User Profile by attempting to display a file
>
> This 2nd test fails because I am still running under USR02
> When this program finishes, the job us still running under
> profile USR02
> It does not return me back to USR01


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.