If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > db2batch/db2expln input file syntax?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-08-08, 02:16
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
db2batch/db2expln input file syntax?

DB2 LUW 9.1 on AIX

db2bacth and db2expln seem to have different requirements with regard to an SQL input file.

Why is it that when I create a file with a single statement in it that I can run it with db2 -tvf, I can explain it when I use the -schema % and -package % syntax but I just cant seem to run it in db2batch :/
Reply With Quote
  #2 (permalink)  
Old 12-08-08, 12:49
stolze stolze is offline
Registered User
 
Join Date: Jan 2007
Location: Jena, Germany
Posts: 2,662
Could you be a bit more specific and provide an example for illustration purposes? Also, the exact error message would be appreciated.
__________________
Knut Stolze
IBM DB2 Analytics Accelerator
IBM Germany Research & Development
Reply With Quote
  #3 (permalink)  
Old 12-08-08, 21:19
meehange meehange is offline
Registered User
 
Join Date: Jul 2004
Posts: 256
Quote:
Originally Posted by stolze
Could you be a bit more specific and provide an example for illustration purposes? Also, the exact error message would be appreciated.
Sorry it was the end of a very long and stressful day :/

Looking at it with a fresh head it basically it seems I'm having schema problems. I can issue a set schema statement in db2expln and then my SQL and that works fine (the -schema option didn't seem to do anything?) but I can't seem to get the db2batch to accept a set schema or find a -schema option for it... I've read the doco and I'm still stumped... I'm sure I'm doing something silly here... any ideas?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On