IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

[Solved]Easytrieve error A046 and an internal SQL error 9048


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kitts

New User


Joined: 29 Jan 2006
Posts: 19

PostPosted: Tue Apr 03, 2007 1:51 pm
Reply with quote

Hi,

I am facing a problem with a job which executes an Easytrieve program and it is trying to open a cursor which is failing with an error A046 and an internal SQL error 9048.

Can anyone help me with it.
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Apr 03, 2007 3:18 pm
Reply with quote

Hi there,

Would u please paste the code as well as spool message
Back to top
View user's profile Send private message
kitts

New User


Joined: 29 Jan 2006
Posts: 19

PostPosted: Tue Apr 03, 2007 3:55 pm
Reply with quote

Hi Ekta,

Below is the code:

320 SQL OPEN HAKOM
321 DO UNTIL SQLCODE NE 0

And here is the spool message.
for the job


320 *******A046 SQL - INTRNL ERR 9048
*******A014 PREMATURE TERMINATION DUE TO PREVIOUS ERROR(S)

Hope this helps you and in turn me!
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Tue Apr 03, 2007 6:02 pm
Reply with quote

Hi there,

Have u define the cursor HAKOM befor opning this?
Back to top
View user's profile Send private message
kitts

New User


Joined: 29 Jan 2006
Posts: 19

PostPosted: Tue Apr 03, 2007 6:29 pm
Reply with quote

I have defined it earlier.

It was working fine till today and suddenly there happened some problem and the DBA has confirmed that there is no problem with the tables on which the cursor was defined.
Back to top
View user's profile Send private message
gbkyadav

New User


Joined: 05 May 2005
Posts: 3

PostPosted: Wed May 23, 2007 5:28 am
Reply with quote

I am also having similar error. If anyone has a solution, pls share
Back to top
View user's profile Send private message
William Thompson

Global Moderator


Joined: 18 Nov 2006
Posts: 3156
Location: Tucson AZ

PostPosted: Wed May 23, 2007 6:51 am
Reply with quote

Sorry, Ekta has quit chasing the problem and kitts is no longer concerned....
I'll look into it in the (my) morning....
In the mean time, feel free to post any additional information you can provide.
Back to top
View user's profile Send private message
gbkyadav

New User


Joined: 05 May 2005
Posts: 3

PostPosted: Fri May 25, 2007 5:13 am
Reply with quote

William, Dir you get through this?
It is failing while opening a cursor. We dont have any sqlcode's returned other than the error.
Back to top
View user's profile Send private message
kitts

New User


Joined: 29 Jan 2006
Posts: 19

PostPosted: Wed May 30, 2007 9:22 am
Reply with quote

Sorry William, I wasnt concerned as I was able to later find out the problem with the code, it was due to overflow of the internal arrays defined.

For gbkyadav my only advice would be to check if the array size is reached if you are receiving similar error.
Back to top
View user's profile Send private message
petwir

New User


Joined: 09 Jul 2007
Posts: 1
Location: Salem Oregon

PostPosted: Sat Feb 20, 2010 2:46 am
Reply with quote

Had the same problem here on 02/19/2010, and ours was also caused by an overflow'd table. This thread helped me to diagnose it very quickly.

Thanks! Pete icon_biggrin.gif
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Feb 22, 2010 4:51 pm
Reply with quote

Glad to hear and nice to know that people are searching before posting now...icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts Error while running web tool kit REXX... CLIST & REXX 5
No new posts Getting Error while trying to establi... DB2 3
Search our Forums:

Back to Top