View previous topic :: View next topic
|
Author |
Message |
sudhee_rb
New User
Joined: 29 Mar 2006 Posts: 34
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
I believe it should abend at compilation time only. |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Ya twissi is right it will give u error at run time. |
|
Back to top |
|
|
ankitsaxena17
New User
Joined: 22 Feb 2006 Posts: 2 Location: Pune
|
|
|
|
It will abend during bind because during bind it will perform the checking for the table. |
|
Back to top |
|
|
|