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
 

 

Is it possible to write a line command

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Is it possible to write a line command
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: 2360
Location: Israel

PostPosted: Thu Aug 02, 2007 11:07 am    Post subject:
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

Senior Member


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

PostPosted: Thu Aug 02, 2007 1:30 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Count the length of the record & ... sreekusr DFSORT/ICETOOL 4 Thu Mar 23, 2017 7:52 pm
No new posts TSO or command line utility to genera... kishpra JCL & VSAM 3 Thu Mar 09, 2017 1:11 am
No new posts Customizing the ISPF HILITE Command Pedro TSO/ISPF 3 Fri Mar 03, 2017 11:49 pm
No new posts Write R1 and R2 to OP1 and R1 to OP2 bhaskar_kanteti DFSORT/ICETOOL 10 Fri Mar 03, 2017 11:18 am
No new posts Can you write 2 recs on SORTOUT when ... Sysaron DFSORT/ICETOOL 6 Thu Feb 23, 2017 12:07 am


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