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
 

 

ISREDIT - How to delete a particular line in rexx

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> TSO/ISPF
View previous topic :: :: View next topic  
Author Message
cgk_106

New User


Joined: 22 Dec 2006
Posts: 21
Location: chennai

PostPosted: Tue Aug 28, 2007 5:40 pm    Post subject: ISREDIT - How to delete a particular line in rexx
Reply with quote

Hi,

Anyone please tell me , How to delete a particular line in rexx.. My intension is to delete all the commented line in a cobol program.. kindly help

Regards,

Gopal.C
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4649
Location: Raleigh, NC, USA

PostPosted: Tue Aug 28, 2007 5:43 pm    Post subject: Reply to: Rexx - Delete a line
Reply with quote

Confused icon_confused.gif

What does REXX have to do with "deleting a line"? Wouldn't you just edit them out?
Back to top
View user's profile Send private message
cgk_106

New User


Joined: 22 Dec 2006
Posts: 21
Location: chennai

PostPosted: Tue Aug 28, 2007 5:48 pm    Post subject:
Reply with quote

Hi Superk,

My intension is to delete the unwanted Commented lines from the COBOL program ( Which lines are all containing '*' in the 7 th column) for that i am writting a REXX code. I don't know, what command should be used to delete a particular line( ISREDIT command ) . Could you please help me in this
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


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

PostPosted: Tue Aug 28, 2007 5:53 pm    Post subject:
Reply with quote

cgk_106,

Suggest that you download all of these manuals in the ISPF Library and look thru them.
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2360
Location: Israel

PostPosted: Tue Aug 28, 2007 6:03 pm    Post subject:
Reply with quote

OK, I think you need to write an ISPF Edit-Macro.

Edit-Macros can be written in REXX (as in other languages).

I believe you need something like this:
Code:
ADDRESS ISREDIT "X ALL '*' 7 7 "
ADDRESS ISREDIT "DELETE ALL X"


O.
Back to top
View user's profile Send private message
cgk_106

New User


Joined: 22 Dec 2006
Posts: 21
Location: chennai

PostPosted: Tue Aug 28, 2007 6:35 pm    Post subject:
Reply with quote

thanks Ofer71..thanks for your timely help..its working icon_smile.gif
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 Passing data from REXX to C programme... chong.zhou CLIST & REXX 1 Wed Jul 26, 2017 9:11 pm
No new posts Passing data from REXX to C programme... chong.zhou All Other Mainframe Topics 0 Wed Jul 26, 2017 4:55 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


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