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
 
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: 4650
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 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
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 5 Wed Oct 04, 2017 6:54 am
This topic is locked: you cannot edit posts or make replies. Rexx to execute spool commands upendrasri CLIST & REXX 47 Fri Sep 29, 2017 1:08 pm
No new posts ejck thru rexx to multiple jobs insid... Susanta All Other Mainframe Topics 5 Tue Sep 19, 2017 1:39 pm

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