Вы находитесь на странице: 1из 595

DB2 Version 9.1 for z/OS

DB2 Version 9.1 for z/OS Command Reference SC18-9844-03

Command Reference

DB2 Version 9.1 for z/OS Command Reference SC18-9844-03
DB2 Version 9.1 for z/OS Command Reference SC18-9844-03

SC18-9844-03

DB2 Version 9.1 for z/OS

DB2 Version 9.1 for z/OS Command Reference SC18-9844-03

Command Reference

DB2 Version 9.1 for z/OS Command Reference SC18-9844-03
DB2 Version 9.1 for z/OS Command Reference SC18-9844-03

SC18-9844-03

Note Before using this information and the product it supports, be sure to read the

Note Before using this information and the product it supports, be sure to read the general information under “Notices” at the end of this information.

and the product it supports, be sure to read the general information under “Notices” at the

Fourth edition (December 2008)

This edition applies to DB2 Version 9.1 for z/OS (DB2 V9.1 for z/OS), product number 5635-DB2, and to any subsequent releases until otherwise indicated in new editions. Make sure you are using the correct edition for the level of the product.

Specific changes are indicated by a vertical bar to the left of a change. A vertical bar to the left of a figure caption indicates that the figure has changed. Editorial changes that have no technical significance are not noted.

© Copyright International Business Machines Corporation 1983, 2008. US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.

Contents

 

About this information

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. ix

Who should read this information .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. ix

. Terminology and citations

DB2 Utilities Suite .

.

.

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. ix

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. ix

Accessibility features for DB2 Version 9.1 for z/OS

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.x

. How to read syntax diagrams .

How to send your comments

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. xi

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. xi

Part 1. Privileges, authorization IDs, and the bind process

 

.1

Chapter 1. Privileges and authorization IDs

 

.3

Chapter 2. The bind process .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.5

Part 2. Description of DB2 and related commands

 

.7

||

Chapter 3. Types of commands

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.9

||

The DSN command and its subcommands .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.9

||

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 10

||

||

DB2 commands . IMS commands .

. CICS attachment facility commands . Administrative scheduler commands

.

.

.

.

.

.

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 10

. 11

||

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 12

||

z/OS IRLM commands

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 12

||

TSO CLISTs

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 12

Chapter 4. DB2 command parsing

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 15

Characters with special meanings .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 16

Examples of keyword entry

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 17

Chapter 5. DSN subcommand parsing

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 19

Chapter 6. Scope of DB2 and related commands

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 21

Chapter 7. Output from DB2 commands

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 23

Chapter 8. Issuing commands to DB2 from IFI

 

25

Chapter 9. Command Line Processor

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 27

Part 3. DB2 and related commands

 

.

.

.

.

.

.

.

. 45

Chapter 10. -ACCESS DATABASE (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 47

Chapter 11. -ALTER BUFFERPOOL (DB2)

 

51

Chapter 12. -ALTER GROUPBUFFERPOOL (DB2)

 

57

Chapter 13. -ALTER UTILITY (DB2) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 61

Chapter 14. -ARCHIVE LOG (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 65

Chapter 15. BIND PACKAGE (DSN) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 71

Chapter 16. BIND PLAN (DSN) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 79

Chapter 17. BIND and REBIND options

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 85

Chapter 18. -CANCEL THREAD (DB2) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 129

Chapter 19. /CHANGE (IMS)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 135

Chapter 20. DCLGEN (DECLARATIONS GENERATOR) (DSN)

 

137

Chapter 21. /DISPLAY (IMS)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 147

Chapter 22. -DISPLAY ARCHIVE (DB2) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 151

Chapter 23. -DISPLAY BUFFERPOOL (DB2)

 

153

Chapter 24. -DISPLAY DATABASE (DB2)

 

161

Chapter 25. -DISPLAY DDF (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 181

Chapter 26. -DISPLAY FUNCTION SPECIFIC (DB2)

 

185

Chapter 27. -DISPLAY GROUP (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 189

Chapter 28. -DISPLAY GROUPBUFFERPOOL (DB2)

 

195

Chapter 29. -DISPLAY LOCATION (DB2)

 

209

Chapter 30. -DISPLAY LOG (DB2) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 213

Chapter 31. -DISPLAY PROCEDURE (DB2)

 

215

Chapter 32. -DISPLAY PROFILE (DB2) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 221

Chapter 33. -DISPLAY RLIMIT (DB2) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 223

Chapter 34. -DISPLAY THREAD (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 225

Chapter 35. -DISPLAY TRACE (DB2) .

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 241

Chapter 36. -DISPLAY UTILITY (DB2)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 253

Chapter 37. DSN (TSO) .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 259

Chapter 38. DSNC (CICS attachment facility)

 

263

Chapter 39. DSNC DISCONNECT (CICS attachment facility)

 

.

.

.

.

.

.

.

.

.

.

.

. 265

Chapter 40. DSNC DISPLAY (CICS attachment facility)

 

267

Chapter 41. DSNC MODIFY (CICS attachment facility)

271

Chapter 42. DSNC STOP (CICS attachment facility)

273

Chapter 43. DSNC STRT (CICS attachment facility)

 

275

Chapter 44. DSNH (TSO CLIST)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 277

Chapter 45. END (DSN)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 305

Chapter 46. FREE PACKAGE (DSN)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 307

Chapter 47. FREE PLAN (DSN) .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 311

Chapter 48. MODIFY admtproc,APPL=SHUTDOWN

 

313

Chapter 49. MODIFY admtproc,APPL=TRACE

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 315

Chapter 50. MODIFY irlmproc,ABEND (z/OS IRLM)

 

317

Chapter 51. MODIFY irlmproc,DIAG (z/OS IRLM)

 

319

Chapter 52. MODIFY irlmproc,PURGE (z/OS IRLM)

 

321

Chapter 53. MODIFY irlmproc,SET (z/OS IRLM)

 

323

Chapter 54. MODIFY irlmproc,STATUS (z/OS IRLM)

 

327

Chapter 55. -MODIFY TRACE (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 335

Chapter 56. REBIND PACKAGE (DSN) .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 339

Chapter 57. REBIND PLAN (DSN)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 343

Chapter 58. REBIND TRIGGER PACKAGE (DSN)

 

347

Chapter 59. -RECOVER BSDS (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 351

Chapter 60. -RECOVER INDOUBT (DB2)

 

353

Chapter 61. -RECOVER POSTPONED (DB2)

 

357

Chapter 62. -REFRESH DB2,EARLY (DB2)

 

361

Chapter 63. -RESET GENERICLU (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

. 363

Chapter 64. -RESET INDOUBT (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 365

Chapter 65. RUN (DSN)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 369

Chapter 66. -SET ARCHIVE (DB2)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 373

Chapter 67. -SET LOG (DB2)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 377

Chapter 68. -SET SYSPARM (DB2)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 381

Chapter 69. SPUFI (DSN)

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 383

Chapter 70. /SSR (IMS) .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 385

Chapter 71. START admtproc

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 387

Chapter 72. /START (IMS) .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 389

Chapter 73. -START DATABASE (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 391

Chapter 74. -START DB2 (DB2) .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 401

Chapter 75. -START DDF (DB2) .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 405

Chapter 76. -START FUNCTION SPECIFIC (DB2)

 

407

Chapter 77. START irlmproc (z/OS IRLM)

 

411

Chapter 78. -START PROCEDURE (DB2)

417

Chapter 79. -START PROFILE (DB2) .

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 421

Chapter 80. -START RLIMIT (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 423

Chapter 81. -START TRACE (DB2)

 

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

.

. 425

Chapter 82. STOP admtproc (z/OS ) .

.

.

.

.

.

.

.

.

.

.

.

.

.