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



Tim,

Look at the job log for the ODBC connection. You should get better debug 
information out of it. You may need to start a service job on it and put it 
into debug (use STRDBG UPDPROD(*YES) after you start the service job) to get 
more detailed information.

Matt

-----Original Message-----
From: Hatzenbeler, Tim [mailto:thatzenbeler@xxxxxxxxxxxxx]
Sent: Wednesday, August 20, 2003 1:03 PM
To: 'RPG programming on the AS400 / iSeries'
Subject: Stored Procedures w/ results set ...RE: user report :rtvusrprf


I wrote the program yesterday, via RPG to retrieve the user profile via an
api, and then I tried to send the results back, realtime via a SQL results
table, via a stored procedure...

But when I tried to let crystal reports to read this stored procedure, I get
this error message:
Statement violates access rule: Connection is set to read only.

This is how I created my stored procedure....

CREATE PROCEDURE DEVTIMH/TESTPROC RESULT SETS 1 LANGUAGE RPGLE    
SPECIFIC DEVTIMH/TESTPROC NOT DETERMINISTIC CONTAINS SQL EXTERNAL 
NAME DEVTIMH/TESTPROC PARAMETER STYLE GENERAL                     

and then this is how I filled my DS.

c/exec sql                                         
c+ set result sets array :resarray  for :i rows    
c/end-exec                                         


I changed the odbc dsn entry, to be read/write and the read/call and then
read but nothing solved the error...  

Any ideas?  Tim

> -----Original Message-----
> From: Steve Landess [SMTP:steve_landess@xxxxxxxxxxx]
> Sent: Tuesday, August 19, 2003 7:17 PM
> To:   RPG programming on the AS400 / iSeries
> Subject:      Re: user report :rtvusrprf
> 
> > Tim wrote:
> > I noticed that there is a CL command, rtvusrprf, that will retrieve
> > the info my security people would like to have a report of, but I was
> > wondering, if there was an RPG IV alternative?  UserSpace API?  Or
> something
> > else?
> 
> Tim,
> 
> In keeping with the "teach a man to fish" posting earlier today (I used
> the
> phrase in a posting yesterday) I'm  not going to tell you the name of the
> API to use.  Instead, go to www.Google.com, type "rtvusrprf api as/400" in
> the
> search box.  On the first page, you should find a link to a post by Simon
> Coulter in the midrange archives that will give you the name of the API
> that
> you need.
> 
> Then go to the API section of the IBM Infocenter at
>  http://publib.boulder.ibm.com/iseries/v5r1/ic2924/index.htm and navigate
> to
>  >Programming>CL and APIs>APIs>Alphabetical list of APIs
> and find the documentation for this API.
> 
> Regards,
> Steve Landess
> Austin, Texas
> (512) 423-0935
> _______________________________________________
> This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
> To post a message email: RPG400-L@xxxxxxxxxxxx
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
> or email: RPG400-L-request@xxxxxxxxxxxx
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/rpg400-l.
This e-mail message, including any attachments, is for the sole use of the
intended recipient(s) and may contain confidential or privileged
information.  Any unauthorized review, use, disclosure or distribution is
prohibited.  If you are not the intended recipient, please contact the
sender by reply e-mail and destroy the message.
_______________________________________________
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...


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.