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
 
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 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
No new posts MQ command in option 6 of ISPF! Vignesh Sid All Other Mainframe Topics 3 Tue Sep 26, 2017 6:01 pm
No new posts How to change a string containing the... chong.zhou TSO/ISPF 6 Tue Aug 29, 2017 4:54 pm
No new posts Failure after DIR command Hank Watson All Other Mainframe Topics 2 Tue Aug 29, 2017 3:14 am

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