MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Housekeeping datasets to increase availabe DASD/Tape

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
nagapa
Beginner


Joined: 16 Sep 2004
Posts: 11
Topics: 4

PostPosted: Thu Sep 16, 2004 7:13 am    Post subject: Housekeeping datasets to increase availabe DASD/Tape Reply with quote

Hi,
I have about 4000 datasets relating to my application in development. I have to check for all datasets one by one and decide if I want to retain or delete them, and its a tedious process.

may I have a clue on how to get the list of all datasets that werent referred for x number of days.

Also, is there any option to release the unused tracks/cyls. Some datasets have a huge space allocated, but uses only a small size.

Thanks
Nagappan
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Sep 16, 2004 7:29 am    Post subject: Reply with quote

Nagappan,

Please search before posting. Check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=2758&highlight=refdt

For your second question of releasing the unused space , check this link

http://www.mvsforums.com/helpboards/viewtopic.php?t=2909


Hope this helps...
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nagapa
Beginner


Joined: 16 Sep 2004
Posts: 11
Topics: 4

PostPosted: Thu Sep 16, 2004 8:06 am    Post subject: Reply with quote

Hi Kolusu,
Thanks for your quick reply.

I tried this JCL
Code:

//STEP0001 EXEC PGM=ADRDSSU                               
//SYSPRINT DD SYSOUT=*                                   
//LIST     DD *                                           
//SYSIN    DD *                                           
  DUMP                   /* COMMAND DUMP             */ -
   DS(INCL(NALAIBS.**)  /* QUALIFIER */ -
   BY((REFDT,LE,*,-30))  /* SELECT IF REFDT LE 30    */ -
   OUTDD(LIST)           /* OUT DD NAME              */ -
   DELETE                /* DELETE ALL THE DATASETS  */   
/*                                                       

But the job failed with rc 8

this is the message

TASKID 001 HAS BEEN ASSIGNED TO COMMAND 'DUMP '
2004.260 08:55:15 INITIAL SCAN OF USER CONTROL STATEMENTS COMPLETED.
KEYWORD 'OUTDD ' IS IMPROPER
ABOVE TEXT BYPASSED UNTIL NEXT COMMAND
2004.260 08:55:15 TASK NOT SCHEDULED DUE TO ERROR. TASK RETURN CODE 0008
2004.260 08:55:15 DFSMSDSS PROCESSING COMPLETE. HIGHEST RETURN CODE IS 0008 FROM
SYNTAX
TASK 001


Is this a syntax problem.

Thanks
Nagappan
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Thu Sep 16, 2004 8:17 am    Post subject: Reply with quote

Nagappan,

If you look at the JCL posted in the link the OUTDD is referring to a DUMMY dataset. But in your JCL you are assinging as if it is a Instream dataset.

Change

Code:

//LIST     DD * 


to
Code:

//LIST     DD DUMMY


and re-run the job.

Hope this helps...

cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
nagapa
Beginner


Joined: 16 Sep 2004
Posts: 11
Topics: 4

PostPosted: Thu Sep 16, 2004 8:46 am    Post subject: Reply with quote

Thanks Kolusu.....

It works.

Cheers
Nagappan
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
nagapa
Beginner


Joined: 16 Sep 2004
Posts: 11
Topics: 4

PostPosted: Wed Oct 27, 2004 3:42 am    Post subject: Housekeeping Migrated datasets Reply with quote

Hi,
I am a new problem. I can use this JCL for all the datasets that are in DASD. For the datasets that are migrated to tape, this JCL restors them. When this dataset is restored, the last referenced date of that dataset is updated to today and fails to get filtered out..... Any Idea how to handle migrated datasets.......?
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Wed Oct 27, 2004 5:45 am    Post subject: Reply with quote

Nagapa,

Try to use the MGMTCLAS as filtering criteria for deleting the migrated datasets. Each shop has their own naming standards.


Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jeba
Beginner


Joined: 02 Dec 2002
Posts: 48
Topics: 9
Location: Columbus, GA

PostPosted: Fri Oct 29, 2004 9:25 am    Post subject: Reply with quote

Hi,

I too wanted to know the datasets that were not used for some days.

So, I removed the delete step from the above specified command like the one below.

Code:

//STEP0100 EXEC PGM=ADRDSSU                             
//SYSPRINT DD SYSOUT=*                                   
//LIST     DD SYSOUT=*                                   
//SYSIN    DD *                                         
  DUMP /* COMMAND DUMP             */ -                 
   DS(INCL(JZS3222.**) /* INCLUDE ALL DSN WITH HLQ */ - 
   BY((REFDT,LE,*,-30)) /* SELECT IF REFDT LE 30    */ -
   OUTDD(LIST) /* OUT DD NAME              */           
/*                                                       


I am getting a return code 8 for the job and the error message is below

Code:

TASKID 001 HAS BEEN ASSIGNED TO COMMAND 'DUMP '                                 
2004.303 10:15:10 INITIAL SCAN OF USER CONTROL STATEMENTS COMPLETED.           
KEYWORD 'OUTDD ' IS IMPROPER                                                   
ABOVE TEXT BYPASSED UNTIL NEXT COMMAND                                         
2004.303 10:15:10 TASK NOT SCHEDULED DUE TO ERROR. TASK RETURN CODE 0008       
2004.303 10:15:10 DFSMSDSS PROCESSING COMPLETE. HIGHEST RETURN CODE IS 0008 FROM
SYNTAX                                                                         
TASK    001                                                                     


Please let me know if I am missing something.
_________________
Thanks,
Jeba
(Known is a drop Unknown is an ocean)
Back to top
View user's profile Send private message Send e-mail
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Fri Oct 29, 2004 9:51 am    Post subject: Reply with quote

Jeba,

You have an extra parenthesis after the BY keyword. Remove that and re-run your job.

Try this job.

Code:

//STEP0100 EXEC PGM=ADRDSSU                             
//SYSPRINT DD SYSOUT=*                                   
//LIST     DD SYSOUT=*                                   
//SYSIN    DD *                                         
  DUMP                   /* COMMAND DUMP             */ -
   DS(INCL(JZS3222.**)   /* INCLUDE ALL DSN WITH HLQ */ -
   BY(REFDT,LE,*,-30))   /* SELECT IF REFDT LE 30    */ -
   OUTDD(LIST)           /* OUT DD NAME              */ 
/*


Hope this helps...

Cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Jeba
Beginner


Joined: 02 Dec 2002
Posts: 48
Topics: 9
Location: Columbus, GA

PostPosted: Tue Nov 02, 2004 9:09 am    Post subject: Reply with quote

Kolusu and Ravi,

Sorry for the late response.

Thanks for your suggestions. After the change, I am able to get the correct results.
_________________
Thanks,
Jeba
(Known is a drop Unknown is an ocean)
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group