View previous topic :: View next topic
|
Author |
Message |
cgk_106
New User
Joined: 22 Dec 2006 Posts: 21 Location: chennai
|
|
|
|
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 |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Confused
What does REXX have to do with "deleting a line"? Wouldn't you just edit them out? |
|
Back to top |
|
|
cgk_106
New User
Joined: 22 Dec 2006 Posts: 21 Location: chennai
|
|
|
|
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 |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
cgk_106,
Suggest that you download all of these manuals in the ISPF Library and look thru them. |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
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 |
|
|
cgk_106
New User
Joined: 22 Dec 2006 Posts: 21 Location: chennai
|
|
|
|
thanks Ofer71..thanks for your timely help..its working |
|
Back to top |
|
|
|