Link to home
Start Free TrialLog in
Avatar of stevebeech
stevebeech

asked on

Running an SQL script file in QSH

Hi there,

I'm trying to create a database in DB2 from within QShell using an sql script in a file. The command I'm using is:

db2 -Svtf mysqcript.sql

However, I get an error: UNABLE TO OPEN FILE: mysqcript.sql RC=3025

I guess this means it can't find my file.

Where in the IFS should I be storing the script file?

Cheers.
ASKER CERTIFIED SOLUTION
Avatar of Barry Harper
Barry Harper
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stevebeech
stevebeech

ASKER

Thanks Barry!
You're welcome!
Check out this link for a manual on Qshell:
http://publib.boulder.ibm.com/infocenter/iseries/v5r3/topic/rzahz/rzahz.pdf
There is a section on path names that qshell uses to search for files.
Barry