Hello,
I was trying to load a comma-separated text file to a DB2 table. I
believe I have the syntax rigt for the LOAD command.
My first question is, how do you actually run it? It is not a SQL
command; so it doesn't run from the command center/SQL window. It
looks like a utility tool but I didn't find a load.exe or db2load.exe
file in the installation directory.
Then I tried to run "db2 load ..." at the Windows command prompt.
This gave me the error message saying that DB21061E Command line
environment was not initialized. Searching for this error, I found
that the solution was something like "db2cmd /w /c db2 load ..." which
doesn't seem natural. But it seems like I need to do this each time,
and then it only allows for a single line.
How do experienced users usually run the LOAD command? Do they create
a script file where they put their user id/passwords? Is there
another way? Is this platform dependent?
I was trying to load a comma-separated text file to a DB2 table. I
believe I have the syntax rigt for the LOAD command.
My first question is, how do you actually run it? It is not a SQL
command; so it doesn't run from the command center/SQL window. It
looks like a utility tool but I didn't find a load.exe or db2load.exe
file in the installation directory.
Then I tried to run "db2 load ..." at the Windows command prompt.
This gave me the error message saying that DB21061E Command line
environment was not initialized. Searching for this error, I found
that the solution was something like "db2cmd /w /c db2 load ..." which
doesn't seem natural. But it seems like I need to do this each time,
and then it only allows for a single line.
How do experienced users usually run the LOAD command? Do they create
a script file where they put their user id/passwords? Is there
another way? Is this platform dependent?
Comment