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



Once you've used QUSPTRUS you'll never use QUSRTVUS again, unless you just 
insist on using CL.

Rob Berendt
-- 
"They that can give up essential liberty to obtain a little temporary 
safety deserve neither liberty nor safety." 
Benjamin Franklin 




Vern Hamberg <vhamberg@xxxxxxxxxxxxxxxxxxxxxxxxx> 
Sent by: midrange-l-bounces@xxxxxxxxxxxx
09/26/2003 09:32 AM
Please respond to
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>


To
Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>
cc

Subject
Re: QSYRUSRI API






Jim

I recommend using either DSPOBJD *ALL *USRPRF OUTPUT(*OUTFILE) or the 
QUSLOBJ API with format OBJL0100. The former may be easier at first, and 
the latter is much faster, since all you need is the object names. The API 

uses a user space, and this can be used in a CL without too much effort.

Then you can use the QSYRUSRI API in CL. If you've not done this, come 
back 
at me off line if you want. In short, it involves DCLing a variable that 
is 
long enough for the API format you want to use, then call the API, then 
use 
%BIN with start position and length, in this case, to get the number of 
days remaining.

To learn more, go to the Programming tab of InfoCenter (V5R2 is the one I 
looke at), then the APIs item, then the Concepts item, then the User space 

format for list APIs. You'll end up using the QUSRTVUS API in your CL, but 

that's a lot like %SST.

HTH

Vern

At 06:32 PM 9/25/2003 -0500, you wrote:
>Has anyone had the occasion to use this API in a CL ?
>
>I am trying to create a CL that scans through each user profile
>and then based on the # of days till the password expires it sends a 
>message to them.
>
>I basically just do a dspusrprf to an outfile
>and then do a dcl on the outfile....and from there hopefully use this API
>to get the # of days till it expires.
>
>Anyone have any examples they can share ?
>
>even an RPG example would work....but my RPG skills are somewhat basic at 

>this point
>I am leaning slowly.
>
>Jim


_______________________________________________
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing 
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.



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.