IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

ISREDIT MACRO NOT WORKING! :cry:


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
kirank889

New User


Joined: 24 Jun 2017
Posts: 2
Location: India

PostPosted: Thu Aug 03, 2017 5:46 pm
Reply with quote

Code:
/********REXX*********/
  TRACE ?R
  ADDRESS ISPEXEC "ISREDIT MACRO"
  ADDRESS ISREDIT '(CURL,CURC) = CURSOR'
/*ADDRESS ISPEXEC "VGET (ZSCREENI ZSCREENC)" */
  ADDRESS ISPEXEC 'ISREDIT (LINE) = LINE' CURL
/*********************/
/*********************/
  IF LASTPOS('DSN=',LINE,CURC) <> 0 THEN
      START = LASTPOS('DSN=',LINE,CURC) + 4
  ELSE
    DO
      IF LASTPOS(' ',LINE,CURC) <> 0 THEN
          START = LASTPOS(' ',LINE,CURC) + 1
    END
/*********************/


Tried executing the above code and getting error messages listed below:

Code:
6 *-* ADDRESS ISPEXEC "ISREDIT MACRO"
  >>>   "ISREDIT MACRO"
  +++ RC(20) +++

IRX0040I Error running REXX1, line 18: Incorrect call to routine.


Its really appreciated if somebody can help me on this. why this error is coming?

Coded
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Thu Aug 03, 2017 6:07 pm
Reply with quote

Well, it says line 18 but you have only posted 16 lines so we have no idea.
Also you appear to try to execute macro commands within a rexx program and not within a macro. I suggest you consult the ISPF Edit and Edit Macro manual.

Also - when posting code and data use the code tags - search for how to do this. I have coded this for you.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Thu Aug 03, 2017 6:36 pm
Reply with quote

did You read the manuals and look at the gazillions of examples in the forum
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Aug 03, 2017 9:42 pm
Reply with quote

Code:
ADDRESS ISPEXEC "ISREDIT MACRO"

I am pretty sure you just want:
Code:
ADDRESS ISREDIT "MACRO"

Likewise in other ISPEXEC ISREDIT statements. They do not go together.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Starting a PROC with parameters from ... CLIST & REXX 6
No new posts SDUMPX macro fails to dump requested ... PL/I & Assembler 5
No new posts Access to macro definitions PL/I & Assembler 4
No new posts PD not working for unsigned packed JO... DFSORT/ICETOOL 5
No new posts Def PD not working for unsigned packe... JCL & VSAM 3
Search our Forums:

Back to Top