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
 

 

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 Passing data from REXX to C programme... chong.zhou CLIST & REXX 2 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts copying data without knowing location arunsoods DFSORT/ICETOOL 6 Thu Jul 20, 2017 1:03 pm
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Loading data to table gives wrong for... Raghu navaikulam DB2 19 Thu Jul 13, 2017 2:11 pm


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