|
|
| Author |
Message |
jagadeshdvn
New User
Joined: 27 Jun 2005 Posts: 14 Location: Chennai
|
|
|
|
Hello,
Scenario?s where to use DSNTIAUL & DB2UTIL utilities.
Appreciate your help in making me understand these utilities with example.
Thanks in advance!!
Note: I was not sure if this should be posted in DB2 or JCL forum. |
|
| Back to top |
|
 |
References
|
Posted: Mon Jul 25, 2005 10:31 pm Post subject: Re: Scenario?s where to use DSNTIAUL & DB2UTIL utilities. |
 |
|
|
 |
Hari Kumar
New User
Joined: 28 Jul 2005 Posts: 21
|
|
|
|
Hi Gagadesh,
DSNTIAUL is unload program. This program, which is written in
assembler language, unloads some or all rows from up to 100 DB2
tables. With DSNTIAUL, you can unload data of any DB2 built-in
data type or distinct type. DSNTIAUL also lets you execute any SQL
non-SELECT statement that can be executed dynamically.
Sample code
| Code: |
//js000 EXEC PGM=IKJEFT01
//SYSPRINT DD SYSOUT=*
//SYSREC00 DD DSN=NEW DATA SET NAME,
// SPACE=(CYL,(10,5),RLSE),
// RECFM=FB,
// DISP=(NEW,CATLG,CATLG),
// UNIT=SYSDA
//SYSPUNCH DD DUMMY
//SYSTSIN DD *,
// BLKSIZE=80
DSN SYSTEM(system name)
RUN PROGRAM(DSNTIAUL) PLAN(DSNTIAUL) PARMS('SQL')
/*
//SYSIN DD *
Sql Statements[select * from tab name
/* |
I Am not Sure About DB2UTIL.
Thanks
Hari B |
|
| Back to top |
|
 |
jagadeshdvn
New User
Joined: 27 Jun 2005 Posts: 14 Location: Chennai
|
|
|
|
Hi Hari,
Thanks for your time Buddy!
I am working on BMC conversion (from BMC to DB2 utilities) project. I am documenting the process and will share the same once it reaches it logical end. |
|
| Back to top |
|
 |
chidams78
New User
Joined: 29 May 2006 Posts: 2 Location: India
|
|
|
|
Jagadeesh,
I am also working on BMC conversion project.
Could you please tell me the equivalent DB2 utilites of BMC functions like loadin / unloading and reorganizing, copying the data
Chidams |
|
| Back to top |
|
 |
nuthan
Active User
Joined: 26 Sep 2005 Posts: 152 Location: Bangalore
|
|
|
|
Go through the site regarding DBUTIL:
http://www.caspur.it/risorse/softappl/doc/sas_docs/accdb/z0267669.htm
A simple example of an Image Copy job using substring notation is:
//J0000004 JOB (UTILITY,'DATGIO I.B.M.*'),'IMAGE COPY DB497_06 ',
// MSGLEVEL=1,CLASS=K,MSGCLASS=N
//*
//* IMAGE COPY UTILITY
//*
//ICOPY EXEC DB2UTIL,SYSTEM=DB22,UID=J0000004
//*
//DSNUPROC.SYSIN DD *
TEMPLATE COPYDDN1 UNIT(RCART) STACK(YES)
DSN('S&DB(3,4)..IC12.&DB..&TS.')
DISP(MOD,KEEP,KEEP)
TEMPLATE COPYDDN2 UNIT(RCARTDM) STACK(YES)
DSN('S&DB(3,4)..IC22.&DB..&TS.')
DISP(MOD,KEEP,KEEP)
LISTDEF J0000004
INCLUDE TABLESPACE DB497406.TSBRIM
INCLUDE TABLESPACE DB497506.TSBRIM
INCLUDE TABLESPACE DB497606.TSBRIM
INCLUDE TABLESPACE DB497706.TSBRIM
INCLUDE TABLESPACE DB497806.TSBRIM
COPY LIST J0000004 COPYDDN(COPYDDN1,COPYDDN2)
//* |
|
| Back to top |
|
 |
chidams78
New User
Joined: 29 May 2006 Posts: 2 Location: India
|
|
|
|
I want to replace the following BMC utilities with equivalent DB2 utility
ACPMAIN - COPY PLUS (image copy)
ARUUMAIN - REORG PLUS (reorganizing the datasets)
AMUUMAIN - LOAD PLUS (loading the data)
ADUUMAIN - UNLOAD PLUS (unloading the data)
AFRMAIN - RECOVERY PLUS ( recovery)
ABUDSN - RUNSTATS (used with IKJEFT01 batch monitor pgm
which controls the above utilites)
I found that the euqivalent DB2 utility for LOAD PLUS is DSNTIAUL
Could you please help me for other functions
Rgds
Chidams |
|
| Back to top |
|
 |
gnanasekar80
New User
Joined: 11 Jan 2007 Posts: 6 Location: chennai
|
|
|
|
Hi jagadesh,
Could you please provide me the process you have followed to convert BMC utilities to DB2 utilities.
Thanks in adavance
Thanks
Gnana |
|
| Back to top |
|
 |
|
|