Ah well.
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Rob Berendt
Sent: Monday, August 12, 2019 2:30 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Debugging sqlrpgle based UDTF with RDi
Changing to QUSER made no difference.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
-----Original Message-----
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Rob Berendt
Sent: Monday, August 12, 2019 2:24 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Debugging sqlrpgle based UDTF with RDi
I'll try that, but there's a difference between "job user" and "current user". Most sql stuff quickly picks up on "current user".
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
-----Original Message-----
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Therrien, Paul via WDSCI-L
Sent: Monday, August 12, 2019 2:20 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxxxxxxxx>
Cc: Therrien, Paul <ptherrien@xxxxxxxxxxx>
Subject: Re: [WDSCI-L] Debugging sqlrpgle based UDTF with RDi
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
I could be wrong,
But when you are running sql scripts in ACS aren't you running as QUSER?
Here is the job running on.
This is the message I see when I first connect to the IBM i...
Connected to relational database myRDB on myIBMi as myProfile - 250095/QUSER/QZDASOINIT using JDBC configuration 'Default'.
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Rob Berendt
Sent: Monday, August 12, 2019 1:57 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Debugging sqlrpgle based UDTF with RDi
Thank you for the video.
However, I have a SEP set
https://imgur.com/ScLB6A9
It's just that when I go into Run SQL Scripts and try to run it, it never stops at the SEP.
Is there something I'm missing here?
https://imgur.com/ZL9A34o
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600 Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
-----Original Message-----
From: WDSCI-L <wdsci-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Roberto De Pedrini
Sent: Monday, August 12, 2019 12:24 PM
To: Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries <wdsci-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: [WDSCI-L] Debugging sqlrpgle based UDTF with RDi
CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.
Hi Rob, I usually debug my RPGLE UDF or UDTF in the same way of other RPG programs ... Usually, I set my service entry point directly from my source code, "C-specs", right mouse button, Set a Service entry point, choose program or service program, library, user and so on and I set it ... then I wait when it triggered and Rdi asks to change perspective ...
Here a little video for you:
https://youtu.be/MTCfVjby51M
HTH
---
Roberto De Pedrini
https://blog.faq400.com
Il giorno lun 12 ago 2019 alle ore 16:26 Rob Berendt <rob@xxxxxxxxx> ha
scritto:
I followed Scott's example of a RPG based UDTF at:
https://www.scottklement.com/presentations/RPG%20User%20Defined%20Func
tions%20%26%20Table%20Functions.pdf
I am having a few issues and I'd like to debug it using Rational
Developer for i.
I run it by using Run SQL Scripts and executing this command:
select *
from table(Retrieve_Program_information('ROB', '*ALL', '*SRVPGM')) as
t ;
Assume that I'm either new or really rusty using the debugger.
I did some searching on this and came across one link which says to
ensure that turn off "Terminate debug session on program completion".
Well, this box is unchecked and greyed out.
I started out with
IBM i: Debug Batch Application (maybe this is a bad start?) Added my
*SRVPGM.
Step into: on
Terminate debug session on program completion: off Search i Projects
first for debug source: on Update production files: on How to start:
has some SBMJOB in there by default
I had clicked on a "just has to run" line of code and selected it to
be a SEP.
Doesn't seem to come up in debugger or anything when I run that
statement in Run SQL Statements.
Rob Berendt
--
IBM Certified System Administrator - IBM i 6.1 Group Dekko Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
--
This is the Rational Developer for IBM i / Websphere Development
Studio Client for System i & iSeries (WDSCI-L) mailing list To post a
message email: WDSCI-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe,
or change list options,
visit: https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/wdsci-l.
Help support midrange.com by shopping at amazon.com with our affiliate
link: https://amazon.midrange.com
--
--
Roberto De Pedrini - Faq400 Srl
http://blog.faq400.com/en *A new IBM i Blog from IBM i Italian Community
Faq400*
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/wdsci-l.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/wdsci-l.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com
--
This is the Rational Developer for IBM i / Websphere Development Studio Client for System i & iSeries (WDSCI-L) mailing list To post a message email: WDSCI-L@xxxxxxxxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxxxxxxxx
Before posting, please take a moment to review the archives at
https://archive.midrange.com/wdsci-l.
Help support midrange.com by shopping at amazon.com with our affiliate
link:
https://amazon.midrange.com
As an Amazon Associate we earn from qualifying purchases.