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
 

 

To run Delete query thru JCL

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

New User


Joined: 31 Aug 2009
Posts: 73
Location: Mumbai

PostPosted: Tue Sep 29, 2009 4:32 pm    Post subject: To run Delete query thru JCL
Reply with quote

Hi,
How can i run a delete query which deletes the data from table thru JCL?
which utility to use? Can anyone please provide the JCL?
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 29, 2009 4:35 pm    Post subject:
Reply with quote

Go ask the people you work with, because we don't know your site standards and practices
Back to top
View user's profile Send private message
apandey

New User


Joined: 31 Aug 2009
Posts: 73
Location: Mumbai

PostPosted: Tue Sep 29, 2009 4:43 pm    Post subject:
Reply with quote

Actually i wanted the utility, like we have IKJEFT01 to Execute select queries/ Load JCL/Unload JCL etc... Similarly I want to execute DELETE query using JCL, Abt site standards and practices, I'll manage.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue Sep 29, 2009 4:49 pm    Post subject:
Reply with quote

Which part of my reply did you not understand.

I can give you a utility and it may be against the practices and standards at YOUR site to use that utility.

That is the reason that you should ask one of your coworkers what THEY use, not me, not the man in the street, but the people that know what you can or can not use.
Back to top
View user's profile Send private message
Ketan Varhade

Active User


Joined: 29 Jun 2009
Posts: 197
Location: Mumbai

PostPosted: Tue Sep 29, 2009 5:49 pm    Post subject:
Reply with quote

Hi Ashutosh,
There are many utlities that can be used to unload,delete,load...
That depends on the site that which utility does the site support,
You can search using mainframe 3.14 option and search for keywords such as unload and delete you may get something helpfull to you.
Back to top
View user's profile Send private message
dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Tue Sep 29, 2009 9:53 pm    Post subject:
Reply with quote

Hello,

Quote:
like we have IKJEFT01 to Execute select queries
Why do you believe a delete query is not run the same as a select query?
Back to top
View user's profile Send private message
Premjith

New User


Joined: 25 Jan 2007
Posts: 1
Location: Chennai

PostPosted: Wed Sep 30, 2009 1:49 pm    Post subject:
Reply with quote

Try using sort:

//S010 EXEC PGM=SORT,PARM='DB2=systemID'
//SYSOUT DD SYSOUT=*,BUFNO=1
//SORTOUT DD DISP=(,CATLG),SPACE=(TRK,(15,5),RLSE),
// DSN=T4xxxxx.DB2.SORT1
//SYSIN DD *
SORT FIELDS=(1,3,CH,A)
/*
//SORTDBIN DD *
Sql query

Thanks,
Premjith
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 Join in SQL Query vickey_dw DB2 1 Tue Jan 17, 2017 12:15 am
This topic is locked: you cannot edit posts or make replies. MQ setup query mohitsaini Java & MQSeries 4 Sun Jan 08, 2017 1:53 am
No new posts DB2 query Using Recursion, Converting... smilewithashu2 DB2 1 Tue Jan 03, 2017 12:50 pm
No new posts SQL query to run through list of valu... Ni3-db2 DB2 14 Wed Dec 14, 2016 9:52 am
No new posts JCL to delete component in a package sundaram.naveen Compuware & Other Tools 14 Tue Nov 29, 2016 6:21 pm


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