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



Here's a sample ILE RPG for SETUID that should work for you. 

No warranties implied :-)

Regards,
Richard Schoen
RJS Software Systems Inc. 

Email: richard@xxxxxxxxxxxxxxx
Web Site: http://www.rjssoftware.com
Tel: (952) 898-3038
Fax: (952) 898-1781

****************** Begin of data **************************************** 
D UID             S              9B 0 
D GID             S              9B 0 
C* 
C* Call set uid program 
C* 
C     *ENTRY        PLIST 
C                   PARM                    USER10           10 
C                   PARM                    INUID             5 0 
 
C*                  ** Set new user ID 
C                   Z-ADD     INUID         UID 
 
C*                  ** No change to group ID 
C                   Z-ADD     -1            GID 
 
C                   CALL      'QSYCHGID'                           99 
C                   PARM                    USER10 
C                   PARM                    UID 
C                   PARM                    GID 
C                   PARM                    ERRRTN         1024 
 
C                   SETON                                        LR 
****************** End of data **************************************** 


------------------------------

message: 2
date: Thu, 01 Apr 2004 16:36:07 -0600
from: Vern Hamberg <vhamberg@xxxxxxxxxxxxxxxxxxxxxxxxx>
subject: Re: SetUID

Nope, Scott's counsel to go to the RPG list is probably the thing to do.

Vern

At 03:20 PM 4/1/2004 -0500, you wrote:
>Thanks Vern...do you know if anyone has gone to the trouble of
>translating the C/C++ prototype definitions to RPG?
>
>- Michael
>




As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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.