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

search option in rexx


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Arunz/os

New User


Joined: 09 Feb 2015
Posts: 2
Location: India

PostPosted: Wed Feb 11, 2015 9:35 am
Reply with quote

Hi,

I am creating a tool to open the programs/jcls/sortin codes in tso. I have a doubt of opening a component from an unknown pds..

Means I am unknown of the PDS name where my componen exists...

in 3.4 we can give "TSSSWE.DEVSTAGE.**.SOURCE"

Will result in

TSSESWE.DEVSTAGE.P11067.SOURCE
TSSESWE.DEVSTAGE.P11069.SOURCE
TSSESWE.DEVSTAGE.P11073.SOURCE
TSSESWE.DEVSTAGE.P11077.SOURCE

in these my component exists in "TSSESWE.DEVSTAGE.P11073.SOURCE"

How to search in all the pds and open the code in view mode... Please help .....
Back to top
View user's profile Send private message
Khadhar Basha

New User


Joined: 28 Oct 2014
Posts: 44
Location: India

PostPosted: Wed Feb 11, 2015 2:00 pm
Reply with quote

Hi Arun,

I am not expert in rexx but I can suggest you the below.

Try to take all 4 PDS in a look.

Check if PDS(COMPONENT) is ok(valid dsn name) then open.

Make it as a loop to check every pds.

Hope this helps
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Wed Feb 11, 2015 2:19 pm
Reply with quote

Use ISPF services
The ones beginning with LM.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Wed Feb 11, 2015 2:20 pm
Reply with quote

unfortunately Your requirement is clear as mud.
to get good answers You should try to post good questions ( CLEAR QUESTIONS )

You can get the same dataset list from a rexx script using LM.... services

see here

ibmmainframes.com/viewtopic.php?t=60743&highlight=

ibmmainframes.com/viewtopic.php?t=25947&highlight=lmmlist
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Wed Feb 11, 2015 6:31 pm
Reply with quote

You can avoid writing a tool by using the SRCHFOR command on the 3.4 panel. It can search a list o PDS data sets and tell you which ones have a hit.
Back to top
View user's profile Send private message
Arunz/os

New User


Joined: 09 Feb 2015
Posts: 2
Location: India

PostPosted: Wed Feb 11, 2015 7:07 pm
Reply with quote

Thank you so much for your replies... I am sorry enrico for not posting my questions in a clear way....
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts Search two or more word with FILEAID Compuware & Other Tools 15
Search our Forums:

Back to Top