Page 1 of 1

How to set the message(==MSG)?

PostPosted: Wed May 29, 2013 7:49 am
by marshall25
hi all,

when edit/view dataset, there are some messages(==MSG) given a heade of line 1, like
Command ===>                                                  Scroll ===> CSR 
****** ***************************** Top of Data ******************************
==MSG> -CAUTION- Profile changed to NUMBER OFF (from NUMBER ON STD).           
==MSG>           Data does not have valid standard numbers.                   
000001 //TESTJOB JOB  TEST,                     
000002 //   CLASS=3,MSGCLASS=R,NOTIFY=&SYSUID                                 
000003 //*                                                                     


i want to edit this MSG to give my messages, how can i do?

Re: How to set the message(==MSG)?

PostPosted: Wed May 29, 2013 8:16 am
by Robert Sample
Depending upon exactly what you are wanting to do, what you want may -- or may not -- be possible. If you want to replace system messages with messages of your own wording, that probably will not happen. You need to find the TSO/ISPF bookshelf manual ISPF Edit and Edit Macros which may allow you to use TSO/ISPF to accomplish what you want -- check the sections on MSG.

Re: How to set the message(==MSG)?

PostPosted: Wed May 29, 2013 7:09 pm
by Pedro
You can write an editor macro that does:
1. RESET to remove existing MSG lines.
2. LINE_BEFORE statement with MSGLINE parameter

You may also want to try INFOLINE and NOTELINE... you may prefer those over the MSGLINE. They look slightly different.

Re: How to set the message(==MSG)?

PostPosted: Thu May 30, 2013 8:01 am
by marshall25
Pedro wrote:You can write an editor macro that does:
1. RESET to remove existing MSG lines.
2. LINE_BEFORE statement with MSGLINE parameter

You may also want to try INFOLINE and NOTELINE... you may prefer those over the MSGLINE. They look slightly different.



thanks Pedro, i tested it and your way is perfect fix my request.
my code.
000001 /*rexx          *display msgline in the dataset*/                     
000002 ADDRESS ISREDIT                                                       
000003 MACRO "NOPROCESS"                                                     
000004 "RESET"                                                               
000005 "LINE_BEFORE 1 = NOTELINE 'HELLO!'"                                   
000006 exit