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
 

 

search option in rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: search option in rexx
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: 37
Location: India

PostPosted: Wed Feb 11, 2015 2:00 pm    Post subject:
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: 1226
Location: Israel

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

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

Global Moderator


Joined: 14 Mar 2007
Posts: 10231
Location: italy

PostPosted: Wed Feb 11, 2015 2:20 pm    Post subject: Reply to: search option in rexx
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

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

http://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: 647
Location: Whitby, ON, Canada

PostPosted: Wed Feb 11, 2015 6:31 pm    Post subject:
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    Post subject: Reply to: search option in rexx
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm


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