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
 

 

Rexx for 3.14 search utility

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

New User


Joined: 26 Mar 2007
Posts: 4
Location: Bangalore

PostPosted: Fri Jul 20, 2007 2:27 pm    Post subject: Rexx for 3.14 search utility
Reply with quote

I have made following Rexx routine for 3.14 search utility

/*REXX CODE TO DO SEARCH FROM PDS */
ARG ABC
ADDRESS ISPEXEC CONTROL ERRORS RETURN
ADDRESS ISPEXEC
"VIEW DATASET('abc.JCLLIB(SRCH) MACRO(CH1)')"

MACRO CH1

ISREDIT MACRO(ABC)
ISREDIT CHANGE 'XXXXX' &ABC

abc.JCLLIB(SRCH) contains JCL for batch search utility where search string is coded like " SRCHFOR 'XXXXX' "

My Rexx routine opens the JCL in view mode but cannot replace 'XXXXX' with the argument received. Please tell me how I can do that. I tried with ISREDIT macro but not able to do.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Fri Jul 20, 2007 7:14 pm    Post subject: Re: Rexx for 3.14 search utility
Reply with quote

Are you sure that the code you posted is right?

Shouldn't it look more like this:

*REXX CODE TO DO SEARCH FROM PDS */
ARG ABC
ADDRESS ISPEXEC CONTROL ERRORS RETURN
ADDRESS ISPEXEC
"VPUT ABC"
"VIEW DATASET('abc.JCLLIB(SRCH)') MACRO(CH1)"

MACRO CH1

ISREDIT MACRO
VGET ABC
ISREDIT CHANGE 'XXXXX' &ABC
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Sun Jul 22, 2007 9:15 am    Post subject:
Reply with quote

or simply change
Code:
"VIEW DATASET('abc.JCLLIB(SRCH)') MACRO(CH1)"

to
Code:
"VIEW DATASET('abc.JCLLIB(SRCH)') MACRO(CH1) PARM(&ABC)"


O.
Back to top
View user's profile Send private message
superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4648
Location: Raleigh, NC, USA

PostPosted: Sun Jul 22, 2007 2:46 pm    Post subject: Re: Rexx for 3.14 search utility
Reply with quote

Aw, jeez, now that's embarrassing. icon_redface.gif

When I was double-checking the BROWSE syntax, I used the ISPF BROWSE model as a reference, and I swear that the model doesn't show the PARM parameter. I'll have to double-check it when I can.
Back to top
View user's profile Send private message
milinangalia

New User


Joined: 26 Mar 2007
Posts: 4
Location: Bangalore

PostPosted: Tue Jul 24, 2007 1:50 pm    Post subject: Re: Rexx for 3.14 search utility
Reply with quote

Thanks superk . I have used VPUT and VGET in my Rexx code. Now its working.
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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 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


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