Rexx tool for cost saving



IBM's Command List programming language & Restructured Extended Executor

Rexx tool for cost saving

Postby balamurali cl » Mon Sep 03, 2012 9:22 pm

Hi All,

I have gone through all the quires in the foroum and got know much for wht I needed. But I am struck at a point. I would really be greatful.If you help me..

My requirement:

1. get the list of all the datasets with a HLQ (i have used LMDINIT, LMDLIST..seen frm previous posts)

2. Display the dataset attributes of all the datasets( I have used LISTDSI for dipslying system attribuets)

Here while diplaying the attributes of dataset I may not able to do it for GDG base and Clusters..Please help me.....


From the attributes I will get all the datasets which are not referenced from 365 days and delete it....Anyone if u have code or suggestions .Please help me
balamurali cl
 
Posts: 36
Joined: Mon Sep 03, 2012 9:01 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Rexx tool for cost saving

 

Re: Rexx tool for cost saving

Postby enrico-sorichetti » Mon Sep 03, 2012 9:43 pm

Anyone if u have code or suggestions .Please help me


this is a help forum .... not give me the code :mrgreen:

no need to use rexx, look at the dfdss filtering capabilities
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Rexx tool for cost saving

Postby balamurali cl » Mon Sep 03, 2012 9:58 pm

hi Enrico,
thanks your quick and valuable reply
I am not aware of dfdss filtrering capabilites services...can you please elaborate amd help me out...i really dnt wnt code...i jst need help..i wil learn myself:-)
balamurali cl
 
Posts: 36
Joined: Mon Sep 03, 2012 9:01 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Rexx tool for cost saving

Postby Robert Sample » Mon Sep 03, 2012 10:04 pm

Find the DFSMS bookshelf and read the Storage Administration Reference manual. DFDSS (program ADRDSSU) allows you select precisely the data sets you are looking for, and it can delete them as well.

However, if your site is running HSM, using the migration facilities of HSM would probably be a better way to accomplish your goal.
Robert Sample
Global moderator
 
Posts: 3367
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 222 times

Re: Rexx tool for cost saving

Postby balamurali cl » Mon Sep 03, 2012 10:13 pm

Actually I want to create a tool using rexx...for which i have written code also...but my job abends whn file is gdg base or cluster...i will post my code tmrw....pls correct me tmrw...i really ty for ur time ur spending on my post
balamurali cl
 
Posts: 36
Joined: Mon Sep 03, 2012 9:01 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Rexx tool for cost saving

Postby enrico-sorichetti » Mon Sep 03, 2012 10:20 pm

Actually I want to create a tool using rexx...for which i have written code also...but my job abends whn file is gdg base or cluster...i will post my code tmrw....pls correct me tmrw...i really ty for ur time ur spending on my post


why do You want to create a useless tool
when the requirement can be easily satisfied with the existing utilities at 0 cost ???

furthermore this is a professiuonal forum, and as such has no place for the idiotic sms slang

the chances of people spending time makink a square wheel round are pretty slim :mrgreen:
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Rexx tool for cost saving

Postby balamurali cl » Tue Sep 04, 2012 11:41 pm

Hi All,

Thanks for help!!!!!

I have seen through DFDSS sevices and learnt that using the JCL we can retrieve the dataset attributes and space in a particular volume.

But I want list of datasets created by a user which are not referenced for more than 1 year.

When I am using the LISTDSI to get the referenced data . As the datasets are migrated the dataset is getting recalled and the referenced date is shown todays date.

Please help me to get the last reference date. I can use the DFDSS services as I dont know the volume numbers.

Please advice me....
balamurali cl
 
Posts: 36
Joined: Mon Sep 03, 2012 9:01 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Rexx tool for cost saving

Postby enrico-sorichetti » Wed Sep 05, 2012 12:06 am

But I want list of datasets created by a user which are not referenced for more than 1 year.


the manuals
http://publibz.boulder.ibm.com/cgi-bin/ ... 0117165748
http://publibz.boulder.ibm.com/cgi-bin/ ... 0227163444

will tell all You might want to know about managing dasd space using dfdss
not the latest ones but more than enough to get You started

for the bookshelf relative to Your zOS level You can start from here
http://www-03.ibm.com/systems/z/os/zos/ ... index.html

 000005 //DSS     EXEC PGM=ADRDSSU,REGION=0M,
 000006 //             PARM='TYPRUN=NORUN'
 000007 //SYSPRINT  DD SYSOUT=*
 000008 //SYSIN     DD *
 000009   DUMP -
 000010        DATASET( -
 000011                 INCLUDE( -
 000012                          ENRICO.** -
 000013                        ) -
 000014                 BY( REFDT LT (*,-xxx) ) - 
 000015               ) -
 000016        OUTDDNAME(OUT)
 000017 //OUT       DD DUMMY


it does not seem so complicated to me
TYPRUN=NORUN is safe enough,
but to be safer I omitted the DELETE clause
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Re: Rexx tool for cost saving

Postby balamurali cl » Wed Sep 05, 2012 12:46 am

Hi Enrico,

Thanks. I will read the manuals and prepare the JCl to get the list of datasets.

But dont we have any REXX command to get the last reference of a dataset ?

Please dont get angry as I am asking same question again and again. I need to do this task using REXX also...Please advice me
balamurali cl
 
Posts: 36
Joined: Mon Sep 03, 2012 9:01 pm
Has thanked: 2 times
Been thanked: 0 time

Re: Rexx tool for cost saving

Postby enrico-sorichetti » Wed Sep 05, 2012 12:52 am

no offense meant... but,
since I reply on my own time I do not see any reason to spend it on an unreasonable requirement

also not writing a useless tool is a cost saving
testing the dfdss approach will not take more than 1 hour manual reading included
how much time have You lost already asking and investigating for an unreasonable solution ?
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2644
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 130 times

Next

Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post