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

List all datasets starting with X or a OR tA7.X OR tA7.A


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

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Mon Nov 17, 2008 11:43 am
Reply with quote

Hi..
I have to list all the datasets in our system starting with x*. and A*. and ta7.X* and Ta7.a* using Rexx. Ex - Rexx command should list all the following datasets

x645695.jcl.pds
x645693.scans.ps
a445693.report.pds
ta7.a00290.input.prog
ta7.x456498.output.report

Please explain what command can I use for this
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 17, 2008 11:51 am
Reply with quote

look at the ISMF reporting, the filtering is already there,
speak to Your support in order to have the ISMF panels made available.

no need to reinvent the wheel

if the selection has to be made on full first level qualifier a plain "LISTCAT LEVEL(....)" will be enough
Back to top
View user's profile Send private message
ashishwach

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Mon Nov 17, 2008 11:54 am
Reply with quote

Hey Enrico, thanks for the quick reply..
as I am new to Rexx, it will be really helpful for me if you could please elaborate on that..
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 17, 2008 12:12 pm
Reply with quote

rexx has nothing to do with ISMF..

Interactive Storage Management Facility
is an ISPF application made available by IBM which provides
SMS administration
....
volume reporting
dataset reporting
....

no need to use REXX
Back to top
View user's profile Send private message
ashishwach

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Mon Nov 17, 2008 12:29 pm
Reply with quote

Thanks Enrico,
I use IBM mainframe only but we have client network setup on our machines, and I am not able to see the ISMF option in my ISPF menu.
Could you please tell me how it can be used and where can I find that..
Actually, we have already suggested our client to do it by Rexx, so it would be good if we do it that way. Please tell me if anyhow that would be possible.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 17, 2008 1:07 pm
Reply with quote

Quote:
Actually, we have already suggested our client to do it by Rexx, so it would be good if we do it that way.

some general considerations

when asking it is not wise to ask having already chosen the tools,
it means
You have evaluated the alternatives with the proper "due diligence"
You have taken into account the skills availability
... You have the competence,
so ... You should not have the need to ask

when asking for a solution You should be satisfied with the answers
You get from the experts, Yes I feel I qualify as one,
and not complain that You did not get the answer You expected

You have already chosen Rexx, do not expect people follow on on your choice

Your project leader should know that :
it' s a bad practice to advise a customer to do something without having the skills


the issue You are asking about is a standard task of storage administration
should have already been planned as a normal activity
and the storage support should already know how to do it

the report will be certainly used for some kind of storage accounting,
so a plain listing from the catalog will not be enough

You have three options for a proper storage management application
ordered on ease of implementation for beginners

use the ismf reporting, used/customized interactively with different filtering parameters
ready to run You only need to fill the panels and hit enter
ask Your support to make ISMF application available to You
( can be used in batch thru the NAVIQUEST facility )
collect and reporting done


process the dcollect data ( the preferred one ) You will have all You need for comprehensive storage reports
but, You will have to write Your reporting,
ICETOOL has some samples
CBTTAPE hase some rexx samples ( not suggested for beginners )
collect done, reporting RYO

write Your own in using
- IGGCSI00 ( catalog interface) and for each dataset issue the proper command to get the physical data
- ISPF library management interface
collect and reporting RYO

at the end a non procedural approach
very quick and very dirty.... ISPF option 3.4 and save the results
no... it will not complain on a generic high level qualifier

RYO ( Roll Your Own ) AKA do it yorself

Your network setup has nothing to do with ISMF,
Back to top
View user's profile Send private message
vikash singh

New User


Joined: 12 May 2007
Posts: 15
Location: noida

PostPosted: Mon Nov 17, 2008 1:49 pm
Reply with quote

/*REXX*/
HLQ='TA7'

N = OUTTRAP("MEM.")
"LISTCAT LEVEL("HLQ")"
N = OUTTRAP("OFF")

DO I = 1 TO MEM.0
SAY MEM.I
END
EXIT

This code will display all the datasets starting with TA7.*
You can use SUBSTR() to fetch the datasets starting with TA7.X or TA7.A

Note: HLQ should be the known high level qualifier.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 17, 2008 1:55 pm
Reply with quote

the snippet You posted gives the TS nothing more than a ...
listcat level(...) issued from ispf option 6 icon_smile.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 17, 2008 2:21 pm
Reply with quote

Quote:
Rexx command should list all the following datasets


maybe the issue is more simple/worse than I thought
is it just plain ignorance(lack of knowledge) of the 3.4 basic utilization ???

the newest ISPF filtering has become more sophystycated,
in option 3.4 just type the patterns as you posted them and You should get
what You asked for

still my considerations on proposing without skill stands
alas is getting worsened by lack of knowledge of the basic tools of the trade

go to 3.4 and hit pf1, it will tell how to specify the dsname level
Back to top
View user's profile Send private message
ashishwach

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Mon Nov 17, 2008 3:05 pm
Reply with quote

Thanks all for your valuable inputs.
Regarding 3.4 option, ya it's there to get the desired result, but we need to store the results somewhere so that on a later stage if we want to delete those datasets, we can do so...
Enrico, I agrred to solution provided by you, but only thing that I asked for is whether same can be done in Rexx or not..
Thanks a lot for your inputs.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 17, 2008 3:15 pm
Reply with quote

yes it can be done
it' s the first time that a poster wants a Yes No answer,
but you should have said so in the first post
saving ...
time general ....
typing ....
network traffic....
time to test TSO to verify the correctness of my post...
- Yes even if I do know the subject I alway give a last test to find the best info to provide
useless sharing of hard earned experience... icon_evil.gif
Back to top
View user's profile Send private message
ashishwach

New User


Joined: 07 Nov 2008
Posts: 19
Location: India

PostPosted: Mon Nov 17, 2008 3:25 pm
Reply with quote

may be because it is the first time that this user has posted on this forum
icon_sad.gif

anyways.. knowledge shared is knowledge gained...that's what I have learnt.. I will keep your words for sure and try to save time, typing, network traffic, my time to test on TSO to verify the correctness of the post provided by you by asking direct question.

My simple question now - How can it be done in Rexx.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Mon Nov 17, 2008 3:30 pm
Reply with quote

Posted a few wweks ago, also gives the options to either list or delete migrated datasets and tape datasets.

Also for dataset selection you can use any combination of the wildcard characters allowable by IBM.

Click HERE to see the thread.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 17, 2008 3:31 pm
Reply with quote

Quote:
My simple question now - How can it be done in Rexx.


take a decision...
a YES/NO answer or what else...

Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Nov 17, 2008 4:53 pm
Reply with quote

OK, OK...

rather than doing in rexx...
You have to write, test,documnet, mantain
even if it would be a nice playground

DFDSS is in my opinion (shared by many others) the smartest approach
tested, documented, mantained, less fun maybe, but more effective

DFDSS filtering is terrific, dataset name,creation date,reference date, space allocated, space used..
look at the docs

here is a link to another post with more info on the approach

ibmmainframes.com/viewtopic.php?t=29913&highlight=dfdss+norun+delete
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 How to create a list of SAR jobs with... CA Products 3
No new posts Build dataset list with properties us... PL/I & Assembler 4
No new posts Merging 2 datasets into one DFSORT/ICETOOL 1
No new posts list pds members name starting with xyz CLIST & REXX 11
No new posts List of quiesced jobs JCL & VSAM 3
Search our Forums:

Back to Top