Analysis of a script

what does this line in a script mean??
I have tried to give it at the command prompt and here is what it returns
ksh: /db2home/db2dap1/sqllib/db2profile: not found.

. /db2home/db2dap1/sqllib/db2profile

i have tried the same thing for my home directory too and the result is the same

. /home/ramky

Result: ksh: /home/ramky: not found.

. means to source a script -- that is, run it in the current shell instead of making a new shell and running it inside. A profile file is usually a script containing only statements like

PROGRAMPATH=qqwert
ASDF=stuff
MAXLINES=7
...

and whatever other global values need to be set in your shell.

So its expecting a file containing a set of global values needed to run the rest of the script and not finding it.

db2 CLP - command line processor - should be on that region.

type
=> db2

should see something like
(c) Copyright IBM Corporation 1993,2002
Command Line Processor for DB2 SDK 8.2.6

You can issue database manager commands and SQL statements from the command
prompt. For example:
db2 => connect to sample
db2 => bind sample.bnd

For general help, type: ?.
For command help, type: ? command, where command can be
the first few keywords of a database manager command. For example:
? CATALOG DATABASE for help on the CATALOG DATABASE command
? CATALOG for help on all of the CATALOG commands.

To exit db2 interactive mode, type QUIT at the command prompt. Outside
interactive mode, all commands must be prefixed with 'db2'.
To list the current command option settings, type LIST COMMAND OPTIONS.

For more detailed help, refer to the Online Reference Manual.

db2 =>

As Suggested by Bill, it is the path where the DB2 CLP is present.
I think you will not get db2 prompt if run db2 command.
You need to run the above command

. /db2home/db2dap1/sqllib/db2profile 

to get the db2 prompt.

macr4free - you are correct - I was assuming that line was in the users .profile

thank you.

Thank you for the response.
thanks again