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

How to stop and start tablespace through JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Sun Sep 09, 2007 8:23 pm
Reply with quote

Hi,

Could someone help me how to stop and start tablespace through JCL?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Sep 10, 2007 5:28 am
Reply with quote

Hello,

It is not clear what you mean by start and stop tablespace.

I suggest you talk with your DBA about your question.
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Mon Sep 10, 2007 5:22 pm
Reply with quote

I would like to know if it is possible to run database commands through JCL.
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Mon Sep 10, 2007 5:49 pm
Reply with quote

Hi,

Yes you can run the database command through JCL.


Thanks
Sai
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Mon Sep 10, 2007 6:36 pm
Reply with quote

Could you please help me to do that? Thanks
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Sep 10, 2007 7:05 pm
Reply with quote

Hello,

If you post what you want, someone may be able to offer suggestions.

This
Quote:
I would like to know if it is possible to run database commands through JCL
needs clarification.

What particular "thing(s)" are you looking for? The forum will not be able to teach you all of batch DB2. . . If you spend some time in the manuals for the version of DB2 you are using, you will find information there.
Back to top
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Mon Sep 10, 2007 8:19 pm
Reply with quote

Hi,

As asked, your post need more clarification to provide you better answer. Still I got this post, might help you.
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Mon Sep 10, 2007 10:14 pm
Reply with quote

Sorry for not being clear with the requirement.
I need to stop a tablespace/database through JCL. If I could get how to issue DB2 commands through JCL, would be helpful.
Is it possible to do?
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


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

PostPosted: Mon Sep 10, 2007 11:58 pm
Reply with quote

Hello,

Not everyone has permission to start and stop the database.

As mentioned earlier,
Quote:
I suggest you talk with your DBA about your question.


Is there some reason the database support people should not be involved?
Back to top
View user's profile Send private message
antonrino.b

New User


Joined: 10 Jan 2006
Posts: 76
Location: Germany

PostPosted: Tue Sep 11, 2007 12:36 am
Reply with quote

I have permission to stop database/tablespace online. Just wanted to know if i could do that batch.
Back to top
View user's profile Send private message
saiprasadh

Active User


Joined: 20 Sep 2006
Posts: 154
Location: US

PostPosted: Tue Sep 11, 2007 9:21 am
Reply with quote

Hi ,
Use the Below JCL

Code:
//Job Card
//STEP010   EXEC  PGM=IKJEFT1B,REGION=4096K         
//STEPLIB DD  DISP=SHR,DSN=My.dataset             
//SYSPRINT  DD SYSOUT=*                             
//SYSTSPRT  DD SYSOUT=*                             
//SYSUDUMP  DD SYSOUT=*                             
//SYSIN     DD DUMMY                               
//SYSTSIN   DD *                                   
DSN S(DB2 subsystem name)                           
-STOP DB(Database name)   
/*                 



Please let me know if you face any problem while executing the above JCL

Thanks
Sai
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 -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts force tablespace using LISTDEF input DB2 1
No new posts Start CICS transaction every day at 2AM CICS 4
No new posts Z Monitoring server fails to start IBM Tools 1
No new posts I don't really get the, "Start a... General Talk & Fun Stuff 3
No new posts EIBCALEN 0 even if we pass LEN and FR... CICS 4
Search our Forums:

Back to Top