IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is it possible to write a line command


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
rakesh pattanayak

New User


Joined: 29 May 2007
Posts: 16
Location: bangalore

PostPosted: Thu Aug 02, 2007 10:05 am
Reply with quote

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
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Thu Aug 02, 2007 11:07 am
Reply with quote

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
View user's profile Send private message
Anuj Dhawan

Superior Member


Joined: 22 Apr 2006
Posts: 6250
Location: Mumbai, India

PostPosted: Thu Aug 02, 2007 1:30 pm
Reply with quote

Hi,

I think, MASK command of ISPF can help a bit.
Enter MASK on any line & press enter, you'll get something like:
Code:
=MASK>
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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files(F1 & F2) and writ... JCL & VSAM 8
No new posts RACF - Rebuild SETROPTS command which... All Other Mainframe Topics 3
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Routing command Address SDSF to other... TSO/ISPF 2
No new posts DTL - how to define key with stacked ... TSO/ISPF 3
Search our Forums:

Back to Top