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
 

 

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: 10274
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 DB2 Program abending without giving a... rahulgarg14 DB2 7 Mon May 29, 2017 8:10 pm
No new posts Getting error while opening a variabl... apandey1 COBOL Programming 5 Fri May 05, 2017 12:22 pm
No new posts SMTP the current generation number of... Jyothi Kulunde JCL & VSAM 4 Thu May 04, 2017 4:08 pm
No new posts RC 20 for Address ISPEXEC "ISRED... pkmurali CLIST & REXX 3 Sun Apr 16, 2017 11:30 pm
No new posts IDC2902I Error tzeche ABENDS & Debugging 2 Tue Mar 28, 2017 11:39 am


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