IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Insert labels using macro


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Fri May 15, 2009 4:15 pm
Reply with quote

I have a macro which inserts a lable on current (line at the cursor), does some processing and comes back to original line

something like

/*REXX*/

"ISREDIT LABEL" LNUM "= .JP" ..... LNUM is my current line number
.............. some logic
"ISREDIT LOCATE .JP"

EXIT


This works ok ...

What i want is to exit from the macro without coming back to original line but keeping the lable as it is ....

I observed when i exit the label is automatically "reset" ...

Why this is happening ? Is there any work around ?
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri May 15, 2009 4:32 pm
Reply with quote

Suggest you reread the LABEL assignment statement, pay particular attention to 'LEVEL'.
Also, look at the example at bottom of page.
Back to top
View user's profile Send private message
hsk

New User


Joined: 28 Nov 2006
Posts: 69
Location: India

PostPosted: Fri May 15, 2009 4:42 pm
Reply with quote

That works .... thanks a lot !!!
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri May 15, 2009 5:05 pm
Reply with quote

you are welcome.

thank you for using the link.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts PRINTOUT macro PL/I & Assembler 0
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
No new posts Identify Program Insert DB2 7
No new posts Insert trailer for non empty file only DFSORT/ICETOOL 6
Search our Forums:

Back to Top