View previous topic :: View next topic
|
Author |
Message |
kirank889
New User
Joined: 24 Jun 2017 Posts: 2 Location: India
|
|
|
|
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 |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2454 Location: Hampshire, UK
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10888 Location: italy
|
|
|
|
did You read the manuals and look at the gazillions of examples in the forum |
|
Back to top |
|
|
Pedro
Global Moderator
Joined: 01 Sep 2006 Posts: 2594 Location: Silicon Valley
|
|
|
|
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 |
|
|
|