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
 

 

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: 1846
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: 10292
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: 2068
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 Restart=Step not working ALAK SAHA JCL & VSAM 6 Fri Jun 30, 2017 6:28 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts SQL query not working in Cobol program. CuriousMainframer COBOL Programming 14 Wed Feb 22, 2017 5:56 pm
No new posts SCRNAME not working on my mainframe? mrsidhu12 TSO/ISPF 7 Thu Sep 01, 2016 2:17 pm


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