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 for a member in a set of concatenated pds's

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
chowdhrykapildev

New User


Joined: 05 Aug 2009
Posts: 44
Location: Hyderabad

PostPosted: Sat Oct 31, 2009 11:30 am    Post subject: Search for a member in a set of concatenated pds's
Reply with quote

Hello All,

lets say there is a command GETPROC which will open the proc for us when the cursor is placed at a PROC inside a PL/1 program.
For this I need to specify the libraries in which it has to perform the search.
My doubt is.. how can we specify user defined libs for the REXX exec to search in for.

I have used the following code:
Code:
when sysnode='MVSADM1' then                             
do                                                       
  proc.proc00 = proc.proc00 'SYS1.PROCLIB'               
  proc.proc00 = proc.proc00 'SYS1.DBDC.PROCLIB'         
  proc.proc00 = proc.proc00 'SYS1.XGROUP.PROCLIB'       
  proc.proc00 = proc.proc00 'ALL.PROCLIB'               
  proc.proc00 = proc.proc00 'CECFRT.PROD.PROCLIB'       
  proc.proc00 = proc.proc00 'CECFRT.IN80916.PROCLIB'     
  proc.proc00 = proc.proc00 'LCRAT.PROD.PROCLIB'         
  proc.proc00 = proc.proc00 'LCRAT.IN80916.PROCLIB'     
end                                                     


but it gives an error:
Code:
     66 +++ proc.proc00 = proc.proc00 'SYS1.PROCLIB'
        +++ "SYNTAX"                                 
 Error running GETPROC, line 66: Label not found     


This is how I invoke this MACRO
Code:
   CECFRT.SYST.PLI(CECFR02) - 01.99         
===> GETPROC                                 
 DCL PLIXOPT CHAR(50) VAR STATIC EXT         
                      INIT('STACK(32K,32K)');
 %INCLUDE COMBUILD;   


The cursor is placed at COMBUILD and hit ENTER
Back to top
View user's profile Send private message

prino

Senior Member


Joined: 07 Feb 2009
Posts: 1018
Location: Oostende, Belgium

PostPosted: Sat Oct 31, 2009 3:52 pm    Post subject:
Reply with quote

Posting more of the code might give mere mortal non-psychics like us a clue...
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2038
Location: Silicon Valley

PostPosted: Sat Oct 31, 2009 11:23 pm    Post subject: Reply to: Search for a member in a set of concatenated pds's
Reply with quote

It looks okay to me, but PROC might be a reserved word. Try changing the stem name to some other name.
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1018
Location: Oostende, Belgium

PostPosted: Sun Nov 01, 2009 12:22 am    Post subject: Re: Reply to: Search for a member in a set of concatenated p
Reply with quote

Pedro wrote:
It looks okay to me, but PROC might be a reserved word. Try changing the stem name to some other name.


REXX does not have reserved words.
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: Sun Nov 01, 2009 2:51 pm    Post subject:
Reply with quote

Where are you assigning a value to proc00
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 -> TSO/ISPF All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts member list compare jzhardy TSO/ISPF 6 Fri May 12, 2017 3:18 pm
No new posts Browsing member from any PDS shiitiizz CLIST & REXX 7 Wed Mar 08, 2017 1:17 am
No new posts Bind plan as a member to another bind... rexx77 DB2 0 Thu Feb 16, 2017 2:02 am
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 Fri Nov 18, 2016 1:48 pm


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