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: 1218
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: 10202
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: 641
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts BWO option in VSAM blayek CICS 3 Sat Nov 05, 2016 10:47 am
No new posts Regarding COBOL Stored Procedure opti... selvamsrinivasan85 DB2 4 Fri Nov 04, 2016 8:57 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am


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