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
 

 

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: 2025
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: 6966
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: 2025
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 syncsort: copy lines after the keyword shreya19 SYNCSORT 7 Fri Dec 02, 2016 9:47 am
No new posts Insert Lines in JCL with Rexx after a... Willy Jensen CLIST & REXX 3 Tue Aug 30, 2016 4:18 pm
No new posts How to insert a lengthy string havin... vidyaa DB2 7 Thu Aug 25, 2016 5:20 pm
No new posts How do I right justify a string in an... rakesh17684 DB2 1 Wed Jun 08, 2016 8:01 pm
No new posts insert the same records but chancing ... danylele74 DB2 6 Mon May 02, 2016 7:22 pm


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