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 Need help with 002-030 ABEND in TSO R... Terry Tallian TSO/ISPF 0 Sat Mar 17, 2018 1:13 am
No new posts write multiple lines in PS file in cobol Balu5491 COBOL Programming 7 Wed Mar 07, 2018 10:27 am
No new posts WRITE to VSAM giving duplicate RC picus_mf CICS 1 Fri Feb 23, 2018 2:52 pm
No new posts how to add the amount for duplicate r... SRUTHI DRAVIDAMANI COBOL Programming 6 Wed Feb 21, 2018 7:21 pm
No new posts OUTREC with ALter Command scorp_rahul23 DFSORT/ICETOOL 1 Wed Nov 22, 2017 3:10 pm

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