IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How to send a data to DB2 thru JCL


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
swati

New User


Joined: 14 Sep 2005
Posts: 7

PostPosted: Thu Nov 17, 2005 3:25 pm
Reply with quote

how to send a data to DB2 thru JCL
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Fri Nov 18, 2005 10:21 am
Reply with quote

Please explain questions once...

As my assumptions.

Updating data in tables thru jcl..Its correct
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Fri Nov 18, 2005 3:39 pm
Reply with quote

hi frnd,
v can give all types of query in SYSIN .. but i have not remembered the utility clearly.. i was confused with the name actually. if u know the name then plz let me know.
Back to top
View user's profile Send private message
vicky10001
Warnings : 1

Active User


Joined: 13 Jul 2005
Posts: 136

PostPosted: Fri Nov 18, 2005 3:58 pm
Reply with quote

Can u do this JCL


//BATCHC EXEC PGM=IKJEFT1A
//STEPLIB DD DSN=SYS1.DB2?.SDSNLOAD,DISP=SHR
//SYSTSPRT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//SYSTSIN DD DSN=???????.DB2APPL.UTIL.SYSC(DSNTEP2T),DISP=SHR
//SYSIN DD *
SELECT * FROM Tablename;
/*
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Mon Nov 21, 2005 1:57 pm
Reply with quote

hey you can use DXTREM , DSNTIAUL utility.
Back to top
View user's profile Send private message
yugi

New User


Joined: 24 Nov 2005
Posts: 1

PostPosted: Thu Nov 24, 2005 5:32 pm
Reply with quote

I believe we can send the data by using PARM parameter also,

//systin dd *

Sub system name

plan, program , library and PARM=data

/*

please correct if I am wrong.
Back to top
View user's profile Send private message
tom_mat

New User


Joined: 13 Jul 2005
Posts: 11

PostPosted: Thu Nov 24, 2005 9:24 pm
Reply with quote

If you want to Update/Insert DB2 table use this simple program shipped by IBM : DSNTIAD
(The jcl is given in the link below)
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.apsg/bjnqmstr723.htm

If you want to execute a select statement use : DSNTIAUL
(The jcl is given in the link below)
http://publib.boulder.ibm.com/infocenter/dzichelp/v2r2/index.jsp?topic=/com.ibm.db2.doc.apsg/bjnqmstr723.htm


Cheers!!
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Data set Rec-Cnt and Byte-Cnt Testing & Performance 2
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts JCL EXEC PARM data in C Java & MQSeries 2
This topic is locked: you cannot edit posts or make replies. Automation need help in sorting the data DFSORT/ICETOOL 38
Search our Forums:

Back to Top