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




I must be using some compile option that tells it not to create the SQLPKG.

I can create the local SQLPKG by the following:
CRTSQLPKG PGM(ROUTINES/GDSSYS001) RDB(GDISYS)

When I try this:
CRTSQLPKG PGM(ROUTINES/GDSSYS001) RDB(GDIHQ)
it results in:
SQ30082  30          Authorization failure on distributed database
connection
CPF9190 Authorization failure on DDM TCP/IP connection attempt. Reason code
17 -- The security mechanism requested by the client is not supported or
  allowed at the server.

Any ramifications of changing from
CHGDDMTCPA AUTOSTART(*YES) PWDRQD(*YES)
to
CHGDDMTCPA AUTOSTART(*YES) PWDRQD(*ENCRYPTED)


Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com


|-----------------------------+-------------------------------------------|
|   "Haas, Matt"              |                                           |
|   <Matt.Haas@xxxxxxxxxxx>   |                                           |
|   Sent by:                  |                                         To|
|   rpg400-l-bounces@midrange.|                                   "RPG    |
|   com                       |                                   programm|
|                             |                                   ing on  |
|   07/23/2004 03:42 PM       |                                   the     |
|                             |                                   AS400 / |
|         Please respond to   |                                   iSeries"|
|      RPG programming on the |                                   <rpg400-|
|          AS400 / iSeries    |                                   l@midran|
|      <rpg400-l@xxxxxxxxxxxx>|                                   ge.com> |
|                             |                                         cc|
|                             |                                           |
|                             |                                    Subject|
|                             |                                   RE:     |
|                             |                                   CRTSQLPK|
|                             |                                   G       |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|                             |                                           |
|-----------------------------+-------------------------------------------|






Rob,

I don't know of any way to automatically create them (I think I tried
catching the SQLCOD and running a command to create them but I remember
that not working) but they are a requirement. They actually get created as
part of the object when you compile the program. I don't think you can just
move the packages from one system to another since they contain things like
access plans and those can differ depending upon what's installed on each
machine.

The basic syntax to create them is CRTSQLPKG PGMLIB/PGM DBNAME. DBNAME is
the database name in WRKRDBDIRE. If you are doing this for a service
program, you'll need to prompt it and change the object type to *SRVPGM.
You'll also need to prompt it if you have to specify a user name and
password on the connect.

Matt

-----Original Message-----
From: rob@xxxxxxxxx [mailto:rob@xxxxxxxxx]
Sent: Friday, July 23, 2004 4:30 PM
To: rpg400-l@xxxxxxxxxxxx
Subject: CRTSQLPKG




I have a SQLRPGLE program that does a CONNECT to our various iSeries.  The
problem is that, with the way I currently have it set up, I need a SQL
package distributed to all the systems.  When I recompile the program I
need to redistribute that package to all of our iSeries.
Is there some way to do the CONNECTs and not use a SQLPKG?
If not, what parameters do I use on CRTSQLPKG?

Looks like I'll have to add some post run commands to the Turnover form to
create and/or distribute these SQLPKG's unless I can figure out how to do
without them.

(see also CRTSQLPKG)


Rob Berendt
--
Group Dekko Services, LLC
Dept 01.073
PO Box 2000
Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com




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

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.