Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
How to send a data to DB2 thru JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: How to send a data to DB2 thru JCL
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    Post subject:
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: 680
Location: NJ

PostPosted: Fri Nov 18, 2005 3:39 pm    Post subject: JCL -- DB2
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    Post subject:
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: 1187
Location: Bangalore,India

PostPosted: Mon Nov 21, 2005 1:57 pm    Post subject:
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    Post subject:
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    Post subject: Re: How to send a data to DB2 thru JCL
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    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 Data security erase on RAID device steve-myers All Other Mainframe Topics 0 Sat Jan 13, 2018 6:41 am
No new posts Append the milliseconds to the data s... girishb2 DFSORT/ICETOOL 1 Thu Dec 21, 2017 9:07 pm
No new posts Moving a COMP-3 Variable to a Numeric... ajayachander COBOL Programming 2 Thu Dec 14, 2017 5:46 pm
No new posts Unable to send mail with SMTP commands harsh.saxena579 JCL & VSAM 10 Tue Dec 12, 2017 1:58 pm
No new posts Extract record for change in combinat... Trinadh DFSORT/ICETOOL 6 Thu Nov 23, 2017 3:32 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us