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

Current Line isredit (CURRLINE) macro error


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

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Mon Feb 25, 2008 11:52 am
Reply with quote

Hi Does anyone know why this piece of code is not working

Code:
ADDRESS ISPEXEC "CONTROL ERRORS RETURN"
ADDRESS ISPEXEC                         
ADDRESS ISREDIT                         
"MACRO"                                 
'isredit (CURRLINE) = LINENUM .ZCSR'   
say "The Current Line is " CURRLINE     
'isredit (ROWC, COLC) = CURSOR'         
SAY ROWC COLC                           
Exit 0
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Feb 25, 2008 12:20 pm
Reply with quote

What do you mean by "not working"???

O.
Back to top
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Mon Feb 25, 2008 12:34 pm
Reply with quote

Hi Ofer,

the output i get is


CURRLINE and ROWC COLC

----------------------------------

In other words, CURRLINE is not having the value of the current line in which the cursor is and ROWC and COLC does not have row or column

please let me know how this can be rectified.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Mon Feb 25, 2008 12:43 pm
Reply with quote

Do you have any previous experience with ISPF Edit Macros? Do you know how to invoke an edit macro? Do you know what are the functions of the commands? Have you tried to run it with trace?

O.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Mon Feb 25, 2008 6:55 pm
Reply with quote

Correct code
Code:
...
Address ISREDIT
"(LINE,CURS) = CURSOR"
say "(LINE,CURS) = " line "," curs
...
Back to top
View user's profile Send private message
CJT

New User


Joined: 02 Aug 2007
Posts: 83
Location: Here

PostPosted: Tue Feb 26, 2008 10:53 am
Reply with quote

Thanks its working for me.
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 Error to read log with rexx CLIST & REXX 11
No new posts Error when install DB2 DB2 2
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts CLIST - Virtual storage allocation error CLIST & REXX 5
No new posts To get the the current time DFSORT/ICETOOL 13
Search our Forums:

Back to Top