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

How to change the colour of a line in cobol dataset


IBM Mainframe Forums -> TSO/ISPF
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
harry143

New User


Joined: 05 Nov 2007
Posts: 21
Location: hyd

PostPosted: Fri Nov 30, 2007 8:01 pm
Reply with quote

Hi,

Through rexx, I am inserting a set of lines in the middle of the program. And to differentiate it from other existing lines I just want to change the colour of the inserted lines through rexx.
Please help me

Regards,
Harish
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Nov 30, 2007 8:07 pm
Reply with quote

Sorry to disillusion You, but it cannot be done
Back to top
View user's profile Send private message
ofer71

Global Moderator


Joined: 27 Dec 2005
Posts: 2358
Location: Israel

PostPosted: Fri Nov 30, 2007 8:22 pm
Reply with quote

One option is to define your own edit panel (a complex mission).

Another option is to draw a flower box around the inserted lines to catch the eye.

O.
Back to top
View user's profile Send private message
Douglas Wilder

Active User


Joined: 28 Nov 2006
Posts: 305
Location: Deerfield IL

PostPosted: Fri Nov 30, 2007 8:40 pm
Reply with quote

I believe that the colors you are referring to are applied by your terminal emulator in response to the attribute bytes. I believe that you are probably referring to viewing the source code through the editor. So the editor would be setting the attribute bytes. You would have to work with the rules these products have for changing the colors. Let us know if you find a way to accomplish this.
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Nov 30, 2007 10:20 pm
Reply with quote

are these inserted lines to be saved with the program upon exit?

if not, you could insert them as note or msg lines.

if so, what has already been said applies.
Back to top
View user's profile Send private message
harry143

New User


Joined: 05 Nov 2007
Posts: 21
Location: hyd

PostPosted: Mon Dec 03, 2007 11:22 am
Reply with quote

dbzTHEdinosauer wrote:
are these inserted lines to be saved with the program upon exit?

if not, you could insert them as note or msg lines.

if so, what has already been said applies.



Yes, I dont want to save them
They can be inserted either as Note or message lines. Anything will be OK
Can you help me how to insert those lines as message lines or note
Waiting for your reply
Back to top
View user's profile Send private message
Marso

REXX Moderator


Joined: 13 Mar 2006
Posts: 1353
Location: Israel

PostPosted: Mon Dec 03, 2007 8:59 pm
Reply with quote

To insert a note in a file, use the ISREDIT macro command:
Code:
"ISREDIT LINE_AFTER .ZCSR = NOTELINE 'your message here'"

you can use LINE_BEFORE instead of LINE_AFTER,
you can use a line number instead of label .ZCSR (line where cursor is)
you can use INFOLINE or MSGLINE instead of NOTELINE
If you want the added line to be part of the data, use DATALINE
Back to top
View user's profile Send private message
harry143

New User


Joined: 05 Nov 2007
Posts: 21
Location: hyd

PostPosted: Tue Dec 04, 2007 10:45 am
Reply with quote

Thanks to All.
I have used MSGLINE
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 -> TSO/ISPF

 


Similar Topics
Topic Forum Replies
No new posts Replace each space in cobol string wi... COBOL Programming 3
No new posts COBOL -Linkage Section-Case Sensitive COBOL Programming 1
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
No new posts FINDREP - Only first record from give... DFSORT/ICETOOL 3
Search our Forums:

Back to Top