View previous topic :: View next topic
|
Author |
Message |
jerryte
Active User
Joined: 29 Oct 2010 Posts: 202 Location: Toronto, ON, Canada
|
|
|
|
There are 2 ways I know of to execute a db2 program.
- DSN RUN command. This will connect to the db2 environment and then execute the program
- DB2 call attach. This will execute the program first and then a call is made to connect to the db2 environment.
They both achieve the same result but is one better then the other?
What I like about the call attach is that I can see the name of the program, db2 subsystem, and plan right in the JCL. There is also no need to use the IKJEFT01 to establish a tso environment first.
The DSN RUN usually has the program and plan name buried in a pds member which is then read in via SYSTSIN dd. |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
Back to top |
|
|
|