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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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
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
ASKER