Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Current Line isredit (CURRLINE) macro error

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: Current Line isredit (CURRLINE) macro error
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: 2360
Location: Israel

PostPosted: Mon Feb 25, 2008 12:20 pm    Post subject:
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    Post subject: Reply to: Current Line isredit (CURRLINE) macro error
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: 2360
Location: Israel

PostPosted: Mon Feb 25, 2008 12:43 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10326
Location: italy

PostPosted: Mon Feb 25, 2008 6:55 pm    Post subject: Reply to: Current Line isredit (CURRLINE) macro error
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    Post subject: Reply to: Current Line isredit (CURRLINE) macro error
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    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 line 52: Name or string > 250 char... Ashishpanpaliya CLIST & REXX 3 Sat Oct 14, 2017 2:29 am
No new posts IEW2456E error when link-editing a C ... Senthilraj JCL & VSAM 0 Fri Oct 13, 2017 3:12 pm
No new posts How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts FTP Skip or ignore error and process ... AJAYREDDY All Other Mainframe Topics 3 Wed Sep 27, 2017 8:12 pm
No new posts Assembler Macro Copybook converted to... Ziquilix PL/I & Assembler 4 Tue Sep 26, 2017 3:07 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us