MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Msg Display in REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
Prasam
Beginner


Joined: 20 May 2004
Posts: 26
Topics: 7
Location: Illinois,USA

PostPosted: Tue Jun 29, 2004 12:28 am    Post subject: Msg Display in REXX Reply with quote

Hi,

Just a small requirement after seeing Mervyn's reply..in
post http://www.mvsforums.com/helpboards/viewtopic.php?t=2448

Here is the macro which i need to execute
Code:

/* REXX edit macro */                 
i = 0                                 
Address isredit "MACRO"               
address isredit "(N) = LINENUM .ZLAST"
ZEDLMSG = 'Welcome Everybody.'       
address ispexec "SETMSG MSG(ISRZ001)"
Do i = 1 to 10000000
  i = i + 1                           
End                                   
ZEDLMSG = i                           
address ispexec "SETMSG MSG(ISRZ001)"

Here the macro displays only the final i value.Only 1 message with i value gets displayed..(No "Welcome Everybody" message as this is not the final message.)


My requirement here is that i need to display the message "Welcome Everybody" on the screen until the do loop in the next line gets over and then i need to display the message with value of i.

What is happening now is the screen is empty with out any message until the loop execution is over where this should display "Welcome Everybody"
during that particular time.

Could any one suggest a solution for this please Smile .

Thanks,
Prasanth.
_________________
The struggle alone pleases us, not the victory. -Pascal,Blaise- 1623-1662, French Scientist
Back to top
View user's profile Send private message Yahoo Messenger
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Tue Jun 29, 2004 11:19 am    Post subject: Reply with quote

see the ISPF "CONTROL DISPLAY LOCK" service
Back to top
View user's profile Send private message Visit poster's website
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Tue Jun 29, 2004 3:02 pm    Post subject: Reply with quote

Also interesting, because I've never used it, is "CONTROL NONDISPL ENTER"

Please let us know how you get on.
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
Prasam
Beginner


Joined: 20 May 2004
Posts: 26
Topics: 7
Location: Illinois,USA

PostPosted: Wed Jun 30, 2004 1:49 am    Post subject: Reply with quote

Semigeezer,

I have used "CONTROL DISPLAY LOCK" in my rexx routine.Now my code looks like this.

Code:

/* REXX edit macro */                 
i = 0                                 
Address isredit "MACRO"               
ZEDLMSG = 'Welcome Everybody.'       
address ispexec "CONTROL DISPLAY LOCK"
address ispexec "DISPLAY MSG(ISRZ001)"
Do i = 1 to 10000                     
  i = i + 1                           
End                                   
ZEDLMSG = i                           
address ispexec "DISPLAY MSG(ISRZ001)"


My objective is partially achieved here once again.What this CONTROL DISPLAY LOCK is doing here is its displaying both messages in a new blank panel which is displayed over the current panel.

I dont want this new blank panel to get displayed.Instead i should get both messages on the same panel on which i executed the macro.

Any help plz..

Thanks,
Prasanth.
_________________
The struggle alone pleases us, not the victory. -Pascal,Blaise- 1623-1662, French Scientist
Back to top
View user's profile Send private message Yahoo Messenger
Prasam
Beginner


Joined: 20 May 2004
Posts: 26
Topics: 7
Location: Illinois,USA

PostPosted: Wed Jun 30, 2004 9:48 am    Post subject: Reply with quote

Semigeezer,

Plz ignore my previous post.I got what i require thru the above code.Sorry for incovenience.Thanks very much Merv and Semigeezer for your replies.

Thanks,
Prasanth.
_________________
The struggle alone pleases us, not the victory. -Pascal,Blaise- 1623-1662, French Scientist
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group