Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
ISREDIT MACRO NOT WORKING! :cry:

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: ISREDIT MACRO NOT WORKING! :cry:
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: 1894
Location: UK

PostPosted: Thu Aug 03, 2017 6:07 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Thu Aug 03, 2017 6:36 pm    Post subject: Reply to: ISREDIT MACRO NOT WORKING! :cry:
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

Senior Member


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

PostPosted: Thu Aug 03, 2017 9:42 pm    Post subject: Reply to: ISREDIT MACRO NOT WORKING! :cry:
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    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 Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am
No new posts exec macro in the end of edit anatol CLIST & REXX 8 Fri Sep 22, 2017 5:10 am
No new posts LIBDEF not working in called proc packerm CLIST & REXX 0 Fri Sep 15, 2017 7:22 pm
No new posts Working with hex values in Filemanage... Emile Straker IBM Tools 0 Tue Sep 12, 2017 1:42 am
No new posts How to Run Rexx Macro? Kalaivignesh CLIST & REXX 5 Fri Sep 01, 2017 9:08 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us