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

What's the Abend when accessing a table which is deleted


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sudhee_rb

New User


Joined: 29 Mar 2006
Posts: 34

PostPosted: Sun Sep 10, 2006 5:29 pm
Reply with quote

Hi this is sudheer

please any body clarify my doubt?

1)we are inclded a table in progra that was physically deleted.

when the program abends while at compile time or runtime?why?

Thanks in advance


Sudheer
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Mon Sep 11, 2006 10:21 am
Reply with quote

I believe it should abend at compilation time only.
Back to top
View user's profile Send private message
twissi

Active User


Joined: 01 Aug 2005
Posts: 105
Location: Somerset, NJ

PostPosted: Mon Sep 11, 2006 10:42 am
Reply with quote

Sudheer,

Your program will abend at run time!

The pre-compiler only checks the field name (basically to figure out any typo), if you've included the table structure (DCLGEN) in the program.
Otherwise, pre-compiler just replaces the SQL statements with the host language call statements.

At the run time, when the SQL statement you mentioned is executed, I guess, you'll get a -204 (not too sure about this).

Cheers, Twissi.
Back to top
View user's profile Send private message
guptae

Moderator


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

PostPosted: Mon Sep 11, 2006 11:18 am
Reply with quote

Ya twissi is right it will give u error at run time.
Back to top
View user's profile Send private message
ankitsaxena17

New User


Joined: 22 Feb 2006
Posts: 2
Location: Pune

PostPosted: Thu Oct 05, 2006 3:30 pm
Reply with quote

It will abend during bind because during bind it will perform the checking for the table.
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 -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Load new table with Old unload - DB2 DB2 6
No new posts Pulling a fixed number of records fro... DB2 2
No new posts ISAM and abend S03B JCL & VSAM 10
No new posts Multiple table unload using INZUTILB DB2 2
No new posts Check data with Exception Table DB2 0
Search our Forums:

Back to Top