Error While reading from DB2 table on mainframe

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
sairamkrish
Participant
Posts: 100
Joined: Wed Feb 02, 2005 4:02 am

Error While reading from DB2 table on mainframe

Post by sairamkrish »

Hi,

Job design

DB2 API Stage--->> TFM --->> Seq file stage

While running a parallel job with the above design i get the below message. Am just reading all records from a DB2 table on mainframes and a direct mapping to Seq file stage on Unix AIX box

DS CLient : DS 7.5.2 on Windows
DS Server : DS 7.5.2 on AIX

Copy_of_DB2_UDB_ASSET_T,0: Fatal Error: Fatal: [IBM][CLI Driver][DB2] SQL0471N Invocation of routine "SYSIBM .SQLTABLES " failed due to reason "00E7900C". SQLSTATE=55023
SQLTables: Error retrieving system catalog information for requested tables(s).

Thanks
Krishna
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi,
Have you tried performing a search?
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
sairamkrish
Participant
Posts: 100
Joined: Wed Feb 02, 2005 4:02 am

Post by sairamkrish »

kumar_s wrote:Hi,
Have you tried performing a search?
Hi,

I could not find topics related to my problem. Could you please help me

Thanks
Krishna
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Looks like you are missing some important variables. Check this out.
Also if you do a google on your sql number, you will get so many results. That will definately help you.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Hi Krishna,
Click on the blue word given on the both of the post. You ll be diverted to a new page where you can get the releven informations.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
sairamkrish
Participant
Posts: 100
Joined: Wed Feb 02, 2005 4:02 am

Post by sairamkrish »

kumar_s wrote:Hi Krishna,
Click on the blue word given on the both of the post. You ll be diverted to a new page where you can get the releven informations.
Hi,

I tried the links given in the post. The strange thing abt this problem is ...I could read from the DB2 table and the job runs fine if i choose some other table. For this particular table i get the error and it confirms the fact that i have select privileges on system tables. Please provide me the solution to this.

Thanks
Krishna
Klaus Schaefer
Participant
Posts: 94
Joined: Wed May 08, 2002 8:44 am
Location: Germany
Contact:

Post by Klaus Schaefer »

Krishna,

there are about 13 stored procedures in DB2 V8, names are like SYSIBM.SQLxxxxx, which need to be implemented/activated for DS DB2-plugin to work properly for metadate retrieval.

Please have your DBA check if all these stored procedures are activated and you have the proper rights to execute them.

Best regards

Klaus
sairamkrish
Participant
Posts: 100
Joined: Wed Feb 02, 2005 4:02 am

Post by sairamkrish »

Klaus Schaefer wrote:Krishna,

there are about 13 stored procedures in DB2 V8, names are like SYSIBM.SQLxxxxx, which need to be implemented/activated for DS DB2-plugin to work properly for metadate retrieval.

Please have your DBA check if all these stored procedures are activated and you have the proper rights to execute them.

Best regards

Klaus
The Db2 version we have is 7. Do i still need to be activated for procedures?

Thanks
Krishna
sairamkrish
Participant
Posts: 100
Joined: Wed Feb 02, 2005 4:02 am

Post by sairamkrish »

Hi Ray,

Can you tell me the possible reason for the error?

thanks
Krishna
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Search in google based on the SQLSTATE gives the following

Code: Select all

INVOCATION OF FUNCTION OR PROCEDURE name FAILED DUE TO REASON rc 

Explanation: A routine was invoked. The routine invocation was not 
accepted because of DB2 reason code rc. 
And by db2 for SQL0471N is

Code: Select all

SQL0471N Invocation of routine "<name>" failed due to reason
          "<reason-code>".

Explanation:

A routine "<name>" was invoked on a DB2 Universal Database for
OS/390 server.  The routine invocation failed because of the
condition described by DB2 reason code "<reason-code>".

 The statement cannot be executed. A DSNX9xx message describing
the error might be displayed on the MVS system console.

User Response:

 Consult the documentation for the DB2 Universal Database for
OS/390 server and correct the condition described by the DB2
reason code.

 sqlcode :  -471

 sqlstate :  55023
So is it not possible to come to a wauge idea with this.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
sairamkrish
Participant
Posts: 100
Joined: Wed Feb 02, 2005 4:02 am

Post by sairamkrish »

kumar_s wrote:Search in google based on the SQLSTATE gives the following

Code: Select all

INVOCATION OF FUNCTION OR PROCEDURE name FAILED DUE TO REASON rc 

Explanation: A routine was invoked. The routine invocation was not 
accepted because of DB2 reason code rc. 
And by db2 for SQL0471N is

Code: Select all

SQL0471N Invocation of routine "<name>" failed due to reason
          "<reason-code>".

Explanation:

A routine "<name>" was invoked on a DB2 Universal Database for
OS/390 server.  The routine invocation failed because of the
condition described by DB2 reason code "<reason-code>".

 The statement cannot be executed. A DSNX9xx message describing
the error might be displayed on the MVS system console.

User Response:

 Consult the documentation for the DB2 Universal Database for
OS/390 server and correct the condition described by the DB2
reason code.

 sqlcode :  -471

 sqlstate :  55023
So is it not possible to come to a wauge idea with this.
Please let me know the work around for this problem.

Thanks
Krishna
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Consult the documentation for the DB2 Universal Database for
OS/390 server and correct the condition described by the DB2
reason code.
This is not a DataStage problem.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply