|
I actually like it a lot better than Navigator. I have a "project"defined. But based on what Vern is saying, I think I'm using the "Data
Anderson
Greg
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Kurt
Sent: Thursday, October 30, 2014 1:48 PMfor System i & iSeries
To: Rational Developer for IBM i / Websphere Development Studio Client
Subject: Re: [WDSCI-L] Running SQL scriptsnot so much. Run SQL Scripts in System i Navigator is so annoying to get
This thread got me excited about running SQL in RDi. But it sounds like
Platform
Kurt Anderson
Sr. Programmer/Analyst ? Application Development, Service Delivery
Hamberg
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Vernon
Sent: Thursday, October 30, 2014 1:45 PMfor System i & iSeries
To: Rational Developer for IBM i / Websphere Development Studio Client
Subject: Re: [WDSCI-L] Running SQL scriptsflavors of DB2, and it will not know what we want from IBM i messages - you
Hi Greg
Data Studio is not an IBM i tool - it is an IBM-wide tool for the several
for what I feel I needed. By design, it does not recognize DDS-based PFs
I had tried a stand-alone install of DS some years ago - it was lacking
messed up my help text settings, taking them over, so that I couldn't get
Now that DS is kind-of bundled with RDi, I tried it again - it thoroughly
perspective - I don't believe it is Data Studio, as someone suggested in a
So I have no love for DS. I have also worked some with the Data
to be truthful, I'll go to good old STRSQL more than any GUI tool. It may
The stuff in Navigator does what I want more than anything in RDi - and
that I know of.
Navigator's interface has some rudimentary prompting - a kind of wizard
- and that won't give me the advanced, new stuff in a prompt, either,
green-screen bit, where I get the SQL* message displayed immediately and
All this is problematic, I agree - and I just have learned to use the
completely correct - V_SHIPVIA is NOT valid for use in that position, for
As to whether SQL7029 is "flat out wrong", I cannot agree - I think it is
DDS.
HTH
Vern
On 10/30/2014 12:17 PM, Greg Wilburn wrote:
This is a bit of topic for this forum, but I can see why many still use
"flat out wrong" when it comes to the real problem.
I'm saying that the SQL error codes and their descriptions are often
error:
Example:
CREATE OR REPLACE VIEW V_SHIP_VIA FOR SYSTEM NAME V_SHIPVIA
(SHIP_VIA_CODE FOR SHPV_CODE,
SHIP_VIA_DESC FOR SHPV_DESC)
AS
(SELECT SUBSTR(RFSLC,1,3) AS SHIP_VIA_CODE,
SUBSTR(RFDTA, 1, 30) AS SHIP_VIA_DESC
FROM ASTDTA.REFERRF
WHERE RFCAT = '0022' AND RFSQ2 = 1 ); This statement yields
TBFPWR7
[SQL7029] New name V_SHIPVIA is not valid.
DSPMSGD...
Display Formatted Message Text
System:
Message ID . . . . . . . . . : SQL7029
Message file . . . . . . . . : QSQLMSG
Library . . . . . . . . . : QSYS
nameMessage . . . . : New name &3 is not valid.
Cause . . . . . : An attempt was made to rename &1 in &2, but the new
systemis not valid. Both the new name and the new system name are valid
namenames. If both names are specified in the RENAME statement, only the
system name.following SYSTEM NAME can be a valid system name.
Recovery . . . : Do one of the following and try the request again:
-- Specify either the new name or the new system name.
-- Change the first name to be a name that is not valid as a
for a view where the original name is less that 10 characters, is not
The new name is most certainly valid.
What I discovered (by trial and error) is that assigning the system name
navigator does. If RDi is a "development tool" with "development studio"
The issue with RDi is that it doesn't provide the message description -
ID.
Greg
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of
Vernon Hamberg
Sent: Thursday, October 30, 2014 12:58 PM
To: Rational Developer for IBM i / Websphere Development Studio Client
for System i & iSeries
Subject: Re: [WDSCI-L] Running SQL scripts
SQL errors on IBM i usually have an SQL code (the variable SQLCOD in
RPG). This number is part of an error message, so if the code is 100,
you can see more by putting the error code after SQL to build a message
identifier."
To see more about SQL code 100 you would do this -
DSPMSGD SQL0100 QSQLMSG
The manual on SQL messages and codes has this instruction -
"Take the absolute value of the SQLCODE, then append it to the letters
″SQL″ (for SQLCODEs less than 10 000) or the letters ″SQ″ (for
SQLCODEs greater than or equal to 10 000) to determine the message
and not getting it.
HTH
Vern
On 10/30/2014 10:01 AM, Gary Thompson wrote:
Greg,
I often find myself at that frustrating point, looking at an SQL error
statement.Happened yesterday when someone asked for help debugging an SQL
identified an "invalid" component.Took way too much time to get the answer, even though the error
'better'.I like your 'upstream or downstream' comment . . .
Error handling, to me, is the toughest game in town, and don't
remember ever having a good idea of how to make any SQL error message
experience.Frankly, I think the issue is more in my attitude, focus and
mainly relate to 'one' operation.
I would not try comparing SQL error handling with a high level
language because HLL errors are, to me, easier to trap because they
HLL program.For example, I don't recall being stumped by SQL errors in the FROM
clause, which is one part of an SQL statement that I can relate to an
for System i & iSeries'To me, an SQL statement is more like an HLL routine.
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Greg
Wilburn
Sent: Thursday, October 30, 2014 8:11 AM
To: 'Rational Developer for IBM i / Websphere Development Studio Client
do, I really despise the lack of "real information" when an error occurs.Subject: Re: [WDSCI-L] Running SQL scripts
Ken,
Thanks... this is my first crack at SQL and while I like what it can
programming language.
Would be nice if there was better syntax checking like in a high level
"REPLACEMENT"...
Greg
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Ken
Killian
Sent: Thursday, October 30, 2014 8:14 AM
To: Rational Developer for IBM i / Websphere Development Studio
Client for System i & iSeries
Subject: Re: [WDSCI-L] Running SQL scripts
Greg,
Sadly no...
RDI Script is an Addition/Complementary to running SQL Scripts, not a
forced me to learn SQL Better. And when I get stuck, I OFTEN have to resort<Big Frown>
I love the ability to test stored procedures from within RDi with the
ability to debug! <smile>
But, at least it gives error feedback, although no highlighting. It has
Because it has bookmarks for commonly run SQL Statements that I run every
Except for testing stored procedures, I often use SquirrelSQL.org.
drive me personally nuts. Writing and running SQL Scripts should be a
I really want to use Data Studio more... But, I guess it's navigation
you can highlight statement to run that single statement! Also very nice!
In the Script Writer, you can press F5=Run Sql Script! Very nice! And
Statement. I cannot use F5 to run... <frown> Very frustrating. But, it has
But, when I try to use the "SQL Query Builder" for a single SQL
scripts (mostly creating views). I like this a bit better than simply
Data Studio also does NOT have the Visual Explain or the Index
Advisor. Once again you have to go back Navigator. Since IBM does NOT
know how to use "Code Reuse" across their tool platform. <Big Frown>
So, sadly I only use Data-Studio for testing stored-Procedures. Any
SQL I use SquirrelSQL.org or Navigator or good old Green Screen
SQL... <disappointment>
RDi cannot NOT be beat for RPGLE development however!!! <Joy Joy>
-Ken Killian-
-----Original Message-----
From: WDSCI-L [mailto:wdsci-l-bounces@xxxxxxxxxxxx] On Behalf Of Greg
Wilburn
Sent: Wednesday, October 29, 2014 3:56 PM
To: 'WDSCI-L@xxxxxxxxxxxx'
Subject: [WDSCI-L] Running SQL scripts
I've installed the Developer Studio and have been creating/editing SQL
Client for System i & iSeries (WDSCI-L) mailing list To post a message--
Is there any way to change this?
--
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@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.
--
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@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.
--
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@xxxxxxxxxxxx To subscribe, unsubscribe, or
change list options,
visit: http://lists.midrange.com/mailman/listinfo/wdsci-l
or email: WDSCI-L-request@xxxxxxxxxxxx Before posting, please take a
moment to review the archives at http://archive.midrange.com/wdsci-l.
This is the Rational Developer for IBM i / Websphere Development Studio
visit: http://lists.midrange.com/mailman/listinfo/wdsci-lhttp://archive.midrange.com/wdsci-l.
or email: WDSCI-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at
As an Amazon Associate we earn from qualifying purchases.
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.