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
 

 

Locate a label set by anothet macro

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
swathykrishnan

New User


Joined: 01 Oct 2010
Posts: 43
Location: Bangalore

PostPosted: Thu Sep 03, 2015 12:32 pm    Post subject: Locate a label set by anothet macro
Reply with quote

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
View user's profile Send private message

RahulG31

Active User


Joined: 20 Dec 2014
Posts: 331
Location: USA

PostPosted: Thu Sep 03, 2015 7:30 pm    Post subject: Reply to: Locate a label set by anothet macro
Reply with quote

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
View user's profile Send private message
prino

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Sep 03, 2015 7:52 pm    Post subject:
Reply with quote

Are your macros calling each other, i.e.

from the Edit command-line:
Code:
"macro"

from "macro":
Code:
"isredit submacro"

from "submacro":
Code:
"isredit another"

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
View user's profile Send private message
swathykrishnan

New User


Joined: 01 Oct 2010
Posts: 43
Location: Bangalore

PostPosted: Fri Sep 04, 2015 12:38 pm    Post subject:
Reply with quote

Hi All,

I am using two different macros. In one macro i will set the Label as .A. In another one I will try to locate the Label .A. And as I said earlier ist working properly if I use the command LOCATE LABEL .A in the first macro itself.

I did this after reading the Manual www-01.ibm.com/support/knowledgecenter/SSLTBW_1.13.0/com.ibm.zos.r13.f54em00/labels.htm%23labels
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 1712
Location: UK

PostPosted: Fri Sep 04, 2015 2:44 pm    Post subject:
Reply with quote

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
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 PCOMM macro to call another PCOMM macro boyti ko All Other Mainframe Topics 4 Tue Jul 12, 2016 4:30 pm
No new posts Send parameter for macro STIMERM from... Daniel Teolotitla PL/I & Assembler 13 Tue Jul 05, 2016 9:23 pm
No new posts RACF Easytrieve Plus macro Susan Jackson CA Products 0 Fri Jun 03, 2016 8:25 pm
No new posts Calling macro via rexx in batch mode. SanaR CLIST & REXX 15 Tue Mar 08, 2016 4:46 pm
No new posts Too many edit macro's and too few PF ... don.leahy TSO/ISPF 7 Wed Feb 17, 2016 3:00 am


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