Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Diff Between DSNUTIAL and DSNTEP2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
logaas

New User


Joined: 19 Feb 2005
Posts: 25
Location: chennai

PostPosted: Sun Apr 02, 2006 6:09 pm    Post subject: Diff Between DSNUTIAL and DSNTEP2
Reply with quote

Hi all,

I have come across batch jobs using DSNTIAUL and some jobs use DSNTEP2 to execute th e SQL queries.

What is the actual diff between these 2 utilites.

Please let me know.


Bye....

logaas
Back to top
View user's profile Send private message

T-REXDB2

New User


Joined: 28 Apr 2005
Posts: 11
Location: USA

PostPosted: Mon Apr 03, 2006 9:02 am    Post subject: Re: Diff Between DSNUTIAL and DSNTEP2
Reply with quote

logaas wrote:
Hi all,

I have come across batch jobs using DSNTIAUL and some jobs use DSNTEP2 to execute th e SQL queries.

What is the actual diff between these 2 utilites.

Please let me know.


Bye....

logaas


Hello, Sir, Logaas!

Here is definition of difference:

DSNTIAUL
The sample 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. You can unload up to 32KB of data from a LOB column. DSNTIAUL unloads the rows in a form that is compatible with the LOAD utility and generates utility control statements for LOAD. DSNTIAUL also lets you execute any SQL non-SELECT statement that can be executed dynamically.

DSNTEP2
A sample dynamic SQL program in the PL/I language. With this program, you can execute any SQL statement that can be executed dynamically. You can use the source version of DSNTEP2 and modify it to meet your needs, or, if you do not have a PL/I compiler at your installation, you can use the object code version of DSNTEP2.

SAMPLE DSNTIAUL
//************************************************************

//*

//* JCL USED TO EXECUTE - DSNTIAUL (IBM UNLOAD) PROGRAM

//*

//************************************************************

//STEP020 EXEC PGM=IKJEFT01,DYNAMNBR=20,REGION=0M

//STEPLIB DD DISP=SHR,DSN=SYS1.DBP1.DSNEXIT

// DD DISP=SHR,DSN=SYS1.DBP1.DSNLOAD

//SYSTSPRT DD SYSOUT=*

//SYSPUNCH DD DUMMY

//SYSREC00 DD DSN=USERID.UNLOAD.CO,

// DISP=(NEW,CATLG,CATLG),

// UNIT=PRDG1,SPACE=(CYL,(250,100),RLSE) ,

//SYSPRINT DD SYSOUT=*

//SYSUDUMP DD SYSOUT=*

//SYSTSIN DD *

DSN SYSTEM(DB2M)

RUN PROGRAM(DSNTIAUL) PLAN(DSNTIAUL) PARM('SQL')

/*

//**********************************************************************

//*

//* THE ';' IS NOT OPTIONAL. MUST BE PRESENT OR A RC=08 WILL BE RECEIVED

//* =============

//**********************************************************************

//SYSIN DD *

SELECT * FROM SYSIBM.SYSDUMMY1 WITH UR ;

//*


SAMPLE DSNTEP2
//*

//STEP020 EXEC PGM=IKJEFT01,DYNAMNBR=20,COND=(0,NE)

//STEPLIB DD DISP=SHR,DSN=SYS1.DBD1.DSNEXIT

// DD DISP=SHR,DSN=SYS1.DBD1.DSNLOAD

// DD DSN=ESASYS2.DBD1.RUNLIB.LOAD,DISP=SHR

//SYSTSPRT DD SYSOUT=*

//*

//SYSPRINT DD SYSOUT=*

//SYSPUNCH DD DUMMY

//SYSUDUMP DD SYSOUT=*

//SYSTSIN DD *

DSN SYSTEM(DB2T)

RUN PROGRAM(DSNTEP2) PLAN(DSNTEP2)

//*

//SYSIN DD *


--#SET TERMINATOR &

CREATE TRIGGER TESTER1

AFTER INSERT ON TEST_OLDTAB

REFERENCING NEW AS N

FOR EACH ROW

MODE DB2SQL

BEGIN ATOMIC

DELETE FROM TEST_TABLE ;

END &

//*


Hope this muchly helps! ;-]
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DB2 plan for DSNTEP2 / DSNTEP4 Mainak_Dalal DB2 3 Thu Jan 21, 2016 1:08 am
No new posts Compare PD Values with same storage &... Shrinika Rajendran JCL & VSAM 5 Wed Nov 05, 2014 3:17 pm
No new posts merge records from 2 ps files with di... kishpra DFSORT/ICETOOL 6 Wed Mar 19, 2014 1:00 pm
No new posts Need help on SORT to write each input... rahul sijoriya JCL & VSAM 4 Mon Dec 02, 2013 9:09 pm
No new posts DB2 delete row from one table with a ... Shereen Samuel DB2 1 Thu Apr 11, 2013 12:08 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us