Rexx Macro Help

IBM's Command List programming language & Restructured Extended Executor
jayaprakasamj
Posts: 2
Joined: Sun Jun 25, 2017 10:36 am
Skillset: Mainframes,jcl,cobol,rexx
Referer: Google

Rexx Macro Help

Postby jayaprakasamj » Sun Jun 25, 2017 6:59 pm

Hi All,
I am new to this forum, I need help on Rexx Macro. I am creating a rexx macro that find a word in each of the member in a pds, with the found word doing change all command. Macro is working as expected But when the change value not found in the member, member keeps opening in edit mode. Macro is not closing automatically though I have ISREDIT END (tried ISPEXEC END as well) command. Please help me solve this. Attaching Macro. Thanks in Advance. (I searched many forums to get the answer for this, but couldn't pull anything)
You do not have the required permissions to view the files attached to this post.

enrico-sorichetti
Global moderator
Posts: 3006
Joined: Fri Apr 18, 2008 11:25 pm
Skillset: tso,rexx,assembler,pl/i,storage,mvs,os/390,z/os,
Referer: www.ibmmainframes.com

Re: Rexx Macro Help

Postby enrico-sorichetti » Sun Jun 25, 2017 8:03 pm

cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort

willy jensen
Posts: 474
Joined: Thu Mar 10, 2016 5:03 pm
Skillset: assembler rexx zOS ispf racf smf
Referer: saw it in the experts foprum thought I could help here

Re: Rexx Macro Help

Postby willy jensen » Mon Jun 26, 2017 1:08 pm

short answer, you must issue the ISPEXEC END command also when RC>0 after the FIND.

jayaprakasamj
Posts: 2
Joined: Sun Jun 25, 2017 10:36 am
Skillset: Mainframes,jcl,cobol,rexx
Referer: Google

Re: Rexx Macro Help

Postby jayaprakasamj » Thu Jun 29, 2017 8:44 am

Thank you Enrico and willy. Got it resolved. Thanks Again :D


  • Similar Topics
    Replies
    Views
    Last post