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
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: List all datasets starting with X or a OR tA7.X OR tA7.A
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 17, 2008 11:51 am    Post subject: Reply to: List all datasets starting with X or a OR tA7.X OR
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 17, 2008 12:12 pm    Post subject: Reply to: List all datasets starting with X or a OR tA7.X OR
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 17, 2008 1:07 pm    Post subject: Reply to: List all datasets starting with X or a OR tA7.X OR
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 17, 2008 1:55 pm    Post subject: Reply to: List all datasets starting with X or a OR tA7.X OR
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 17, 2008 2:21 pm    Post subject: Reply to: List all datasets starting with X or a OR tA7.X OR
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    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 17, 2008 3:15 pm    Post subject: Reply to: List all datasets starting with X or a OR tA7.X OR
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Mon Nov 17, 2008 3:30 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 17, 2008 3:31 pm    Post subject: Reply to: List all datasets starting with X or a OR tA7.X OR
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10203
Location: italy

PostPosted: Mon Nov 17, 2008 4:53 pm    Post subject: Reply to: List all datasets starting with X or a OR tA7.X OR
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

http://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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Cobol list of programs being called biswajit.dattagupta COBOL Programming 5 Tue Nov 01, 2016 2:10 am
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts reorder screeNS using SWAP LIST? mrsidhu12 TSO/ISPF 5 Thu Sep 01, 2016 2:19 pm
No new posts Getting list of tables defined under ... kishpra DB2 2 Wed Aug 24, 2016 10:36 am


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