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
 
To insert a line after few lines using ISREDIT

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
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    Post subject: To insert a line after few lines using ISREDIT
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: 8593
Location: Back in jolly old England

PostPosted: Thu Sep 03, 2009 5:13 pm    Post subject:
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

Senior Member


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

PostPosted: Thu Sep 03, 2009 7:20 pm    Post subject: Reply to: To insert a line after few lines using ISREDIT
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    Post subject: Reply to: To insert a line after few lines using ISREDIT
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: 6968
Location: porcelain throne

PostPosted: Fri Sep 04, 2009 5:04 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Fri Sep 04, 2009 6:04 pm    Post subject:
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

Senior Member


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

PostPosted: Fri Sep 04, 2009 8:13 pm    Post subject: Reply to: To insert a line after few lines using ISREDIT
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    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 5 Sat Oct 14, 2017 2:29 am
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 How to insert a value on specific pos... Poha Eater DFSORT/ICETOOL 9 Sun Oct 01, 2017 3:04 am
No new posts Insert a Row_number into table useit DB2 2 Tue Sep 19, 2017 1:07 pm
No new posts ISREDIT MACRO NOT WORKING! :cry: kirank889 TSO/ISPF 3 Thu Aug 03, 2017 5:46 pm

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