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

To insert a line after few lines using ISREDIT


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

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Thu Sep 03, 2009 4:50 pm
Reply with quote

Hi
Code:
"ISREDIT Line_After .zcsr = " New

The above command I used to insert a line.The Variable
Quote:
New
contains a string, but that value is not being inserted.

What is the command I have to use, if I have insert a line after few lines?
I tried the below, it's not working
Code:
"ISREDIT Line_After 2 = " New
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Sep 03, 2009 5:13 pm
Reply with quote

Do not start a new topic on a totally unrelated thread.
DO not start a new topic in the wrong forum.

Set a variable to the required line number and use that instead of .ZCSR
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Sep 03, 2009 7:20 pm
Reply with quote

Quote:
I tried the below, it's not working
Code:
"ISREDIT Line_After 2 = " New


"its not working" is not very good debugging information. It should have added a new line after the second line in the file.
Back to top
View user's profile Send private message
HameedAli

Active User


Joined: 16 Apr 2009
Posts: 151
Location: India

PostPosted: Fri Sep 04, 2009 4:54 pm
Reply with quote

The below Variable has a value, but it's not being inserted, what could be the reason?
Code:
Insrt = "QWERTY     HOWERTY "||"'"||Text||"'"
ISREDIT "(Num) = "Cursor                     
ISREDIT "LINE_AFTER" Num + 2" =" Insrt     
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Fri Sep 04, 2009 5:04 pm
Reply with quote

what does trace show? what is the RC after the line_after?

infact, what is the rc after the CURSOR also?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Fri Sep 04, 2009 6:04 pm
Reply with quote

Do you put your cursor in the left hand number margin, or on the working screen area.

Try it doing both and see what happens.
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Fri Sep 04, 2009 8:13 pm
Reply with quote

Do you have a "MACRO" statement?
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 Write line by line from two files DFSORT/ICETOOL 7
No new posts Reading dataset in Python - New Line ... All Other Mainframe Topics 22
No new posts rewrite same SAY line CLIST & REXX 8
No new posts Insert header record with record coun... DFSORT/ICETOOL 14
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top