View previous topic :: View next topic
|
Author |
Message |
swathykrishnan
New User
Joined: 01 Oct 2010 Posts: 43 Location: Bangalore
|
|
|
|
Hello,
I am Setting a Label .A for a line using the command
Code: |
"ISREDIT (LNM) = LINENUM .ZCSR"
"ISREDIT LABEL (LNM) = .A" |
But when I try to locate the Label using another macro(without exiting the current Screen) ist giving an error message
Code: |
"ISREDIT LOCATE .A"
Command in error . : LOCATE .A
Invalid parameter
Invalid line number or label or LOCATE keyword.
Error message ID . : ISRE066
Last return code . : 20 |
And the same will work if we write both codes in same macro.
I have tried by saving the linenum to Profile variable and locate the line using linenum in next macro. But that also returned the same error. |
|
Back to top |
|
|
RahulG31
Active User
Joined: 20 Dec 2014 Posts: 446 Location: USA
|
|
|
|
Can you make sure that it is the problem with Locate and Not the Label ?
May be the label is Not set and that is why it's not able to locate?
Can you check please? |
|
Back to top |
|
|
prino
Senior Member
Joined: 07 Feb 2009 Posts: 1306 Location: Vilnius, Lithuania
|
|
|
|
Are your macros calling each other, i.e.
from the Edit command-line:
from "macro":
from "submacro":
The answer is almost certainly yes, which means that you urgently need to read the chapter about the LABEL command in the manual, because that will explain everything.
And in fact, even if you call them sequentially, you will run into the same problem, that, after reading the manual, turns out to be not a problem at all, because it's working as designed! |
|
Back to top |
|
|
swathykrishnan
New User
Joined: 01 Oct 2010 Posts: 43 Location: Bangalore
|
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
So the first macro does not call the second macro? If that is the case you did NOT read all of that document - especially the section Referring to labels |
|
Back to top |
|
|
|