Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum 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: 2349
Location: Hampshire, 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

Senior Member


Joined: 14 Mar 2007
Posts: 10681
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: 2182
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
This topic is locked: you cannot edit posts or make replies. Macro REXX - ISRE741 Command not exec... sandeep prajapati CLIST & REXX 1 Fri Apr 17, 2020 12:48 am
No new posts On a team working on a new project fo... zCMHII All Other Mainframe Topics 2 Mon Apr 06, 2020 9:15 pm
No new posts How efficient are you, while working ... vasanthz General Talk & Fun Stuff 0 Tue Mar 31, 2020 11:39 pm
No new posts Need a Macro to compare datasets and ... Anupam Nayak All Other Mainframe Topics 2 Mon Feb 17, 2020 4:45 pm
No new posts Large'ish Working Storage and SOS issues govindc CICS 0 Sat Jan 18, 2020 1:58 am

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