View previous topic :: View next topic
|
Author |
Message |
rakesh pattanayak
New User
Joined: 29 May 2007 Posts: 16 Location: bangalore
|
|
|
|
Hi ,
Is it possible to write a line command that will add something in the cobol program.
for ex.
when we type "I" in the line it inserts a ne line.
what i need is if i will Type "S" when i am inside a Cobol program
it will add a new
****date <My name> begin****
like when i will type "E" it will add a new line like
****date <My name> end*** |
|
Back to top |
|
|
ofer71
Global Moderator
Joined: 27 Dec 2005 Posts: 2358 Location: Israel
|
|
|
|
There is no straightforward method of doing it; you will need to use your own edit panel as far as I remember. There is an example from Mr. Nadel which could be found in Google Groups or other forums.
From the other hand, you can take advantage of cursor-sensitive Edit-Macro commands (like PROCESS RANGE, LINE_AFTER etc.) to achieve your goal with a "regular" macro.
O. |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
I think, MASK command of ISPF can help a bit.
Enter MASK on any line & press enter, you'll get something like:
in front of this put whatever you want to print by a single line command. Next time when you enter line command 'I' to insert a line, the text you entered above will appear every time you insert a new line.
Hope this helps. |
|
Back to top |
|
|
|