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 Replace values in the input data Vikas Maharnawar DFSORT/ICETOOL 10 Thu May 11, 2017 2:18 pm
No new posts Group Data based on a key Arun Raj DFSORT/ICETOOL 7 Thu Apr 27, 2017 11:29 pm
No new posts unload data from table with lob columns farhad_evan DB2 0 Sat Apr 22, 2017 1:32 pm
No new posts SORT JSON type of data maxsubrat DFSORT/ICETOOL 8 Wed Apr 19, 2017 6:01 pm
No new posts Data replication from multiple Db2 ta... kishpra DB2 9 Mon Mar 27, 2017 9:58 pm


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