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

Assembler program , -804 sql code error


IBM Mainframe Forums -> PL/I & Assembler
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Jimy Carol

New User


Joined: 31 Aug 2012
Posts: 25
Location: Australia

PostPosted: Thu Aug 01, 2013 7:39 pm
Reply with quote

Hello ,

I have changed an Assmebler program which has SQL db2 call for SYSIBM.SYSTABLES , After inserting the new lines I am getting SQLERROR -804, reason code =16 , To check if the problem is beacause of my new code I commented the the call to the new routine , Still the problem occured . When i removed the new para completely by delelting the lines , the problem got fixed . I am not able to understand how the new code is affecting the SQl code despite its not executed . My compilation went fine with no addressability issue .

thanks for any pointers ,

Regards
carol
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Thu Aug 01, 2013 7:48 pm
Reply with quote

And the SQL bind?
Back to top
View user's profile Send private message
Jimy Carol

New User


Joined: 31 Aug 2012
Posts: 25
Location: Australia

PostPosted: Thu Aug 01, 2013 8:01 pm
Reply with quote

Nic Clouston wrote:
And the SQL bind?


Hvnt bind , Not changed the SQL part , moroever the code works well after removing the new lines .
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Aug 01, 2013 8:33 pm
Reply with quote

IIRC, the SQL translator generates "SQL statement numbers" based on the relative number of the sourceline of the SQL statement, and given the fact that removing the new lines and re-aasmbling the code result in no error, it also seems that you do not use the SQL consistency tokens.
Back to top
View user's profile Send private message
Jimy Carol

New User


Joined: 31 Aug 2012
Posts: 25
Location: Australia

PostPosted: Thu Aug 01, 2013 9:15 pm
Reply with quote

I bind the program again , still the problem persist.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 01, 2013 9:27 pm
Reply with quote

Hello,

Suggest hyou show your dba the colmpile/bind. Whetever is causing this is site-specific and your dba should be able to help.

It sounds as though code was changed that was not intended to be changed . . .
Back to top
View user's profile Send private message
Jimy Carol

New User


Joined: 31 Aug 2012
Posts: 25
Location: Australia

PostPosted: Thu Aug 01, 2013 9:48 pm
Reply with quote

prino wrote:
IIRC, the SQL translator generates "SQL statement numbers" based on the relative number of the sourceline of the SQL statement, and given the fact that removing the new lines and re-aasmbling the code result in no error, it also seems that you do not use the SQL consistency tokens.



Thanks for sharing this Prino !! the problem was actually with SQL token , after your hint I analyzed some other programs in my system and found that i am missing one macro in my program which does the tokenization of SQL in programs , after build of program with missing macro , Bind sql , the programs is running beautifully .
thank you all gentleman for the help
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 01, 2013 9:58 pm
Reply with quote

Good to hear it is working - thank you for letting us know icon_smile.gif

d
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 -> PL/I & Assembler

 


Similar Topics
Topic Forum Replies
No new posts Using API Gateway from CICS program CICS 0
No new posts Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
Search our Forums:

Back to Top