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

REXX: Need text for user it looks like someone is typing it


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Ankit Kumar Gupta

New User


Joined: 08 Jan 2011
Posts: 16
Location: India

PostPosted: Thu Jan 13, 2011 9:53 am
Reply with quote

Hi,

I want to show the text on the screen using REXX like user will feel that system is typing it.

I mean say the output will be " Hi User" It should comes like Letter by letter with some delay between them. So that it looks like someone is typing it.

Is it possible?

Thank you,
Regards,
Ankit Gupta
Back to top
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jan 13, 2011 12:16 pm
Reply with quote

Nothing comes to mind.

Now, if you wanted to call an ISPF Panel, then it might be feasible ...
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1306
Location: Vilnius, Lithuania

PostPosted: Thu Jan 13, 2011 3:52 pm
Reply with quote

Ankit Kumar Gupta wrote:
I want to show the text on the screen using REXX like user will feel that system is typing it.

I mean say the output will be " Hi User" It should comes like Letter by letter with some delay between them. So that it looks like someone is typing it.

Is it possible?


Please go back to your little box powered by Gates' Garbage. Mainframes are used for serious work.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Thu Jan 13, 2011 3:57 pm
Reply with quote

You could wait 5 seconds before typing the next character.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Thu Jan 13, 2011 8:29 pm
Reply with quote

You can display simple animations using ISPF services. For example, I have a function that displays a "work in progress" bar by redisplaying a panel in a loop (under CONTROL DISPLAY LOCK). ISPF 3.4 has one too, if memory serves.

But these are not serious applications, just technical stunts.
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Thu Jan 13, 2011 9:44 pm
Reply with quote

and almost any customer of mine enabled at Christmas time
a small rexx displaying a christmas tree, blinking lights and season' s greetings
the lazy approach just write a few of panels
a more sophisticated approach was to dynamically change the attributes of the lights
Back to top
View user's profile Send private message
Pedro

Global Moderator


Joined: 01 Sep 2006
Posts: 2547
Location: Silicon Valley

PostPosted: Thu Jan 13, 2011 10:38 pm
Reply with quote

Agree about using CONTROL DISPLAY LOCK with ISPF panels.

Also, use
Code:

Call syscalls 'ON'
Address syscall "sleep" 1

To slow down the displays.
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 765
Location: Whitby, ON, Canada

PostPosted: Thu Jan 13, 2011 11:25 pm
Reply with quote

There was actually one time in my experience where an ISPF animation served a useful purpose. I demonstrated my "work in progress" bar to my friendly systems programmer and he was appalled at how much slower the TSO response time was on DEV compared to Production. He launched an immediate investigation. icon_smile.gif
Back to top
View user's profile Send private message
Kjeld

Active User


Joined: 15 Dec 2009
Posts: 365
Location: Denmark

PostPosted: Sat Jan 15, 2011 8:59 pm
Reply with quote

There's no point in try making a 3270 screen load as slow as a web page. If you want browser response times, use a browser web application. icon_wink.gif
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Sun Jan 16, 2011 4:04 pm
Reply with quote

Ankit Kumar Gupta wrote:
I mean say the output will be " Hi User" It should comes like Letter by letter with some delay between them. So that it looks like someone is typing it.

Maybe I should know better than to ask, but what is the business reason behind this icon_evil.gif
Back to top
View user's profile Send private message
Ankit Kumar Gupta

New User


Joined: 08 Jan 2011
Posts: 16
Location: India

PostPosted: Sun Jan 16, 2011 5:41 pm
Reply with quote

@ All above

Thanks for sharing your thoughts... I am a newbie trying my hands on REXX. I just thought like if we can give some good display to user icon_smile.gif

Anyways!

Thanks once again "enrico-sorichetti", "don.leahy", "Pedro" for giving the information and your time.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Mon Jan 17, 2011 12:01 am
Reply with quote

Hello,

Quote:
I just thought like if we can give some good display to user
This is not a "good display to user". Most users want the screen interaction to move as quickly as possible. If there are only 30 characters to be displayed - this will take 1/2 a minute (an eternity). The "real users" will most likely not accept this delay even if it is cute. Even though this was "neat" in WarGames (the movie) - it was state of the art then. No so today.

It is a very good idea learn REXX and other tools. Suggest the effort be spent getting things to work correctly every time and interact quickly. . .

FWIW icon_wink.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Jan 17, 2011 3:39 am
Reply with quote

Quote:
I mean say the output will be " Hi User" It should comes like Letter by letter with some delay between them. So that it looks like someone is typing it.

Is it possible?
You are asking the wrong question. You should be asking "Is this something I want to do?" not whether or not it is possible. A professionally written system on a mainframe would never tolerate such delays -- the mainframe, unlike the PC and the like, does not require CPU time to examine every character typed on every keyboard (especially since there could be thousands of keyboards attached at any given time). Learn to use the mainframe facilities the way it has worked for the last 45 years -- don't try to make it look like something it is not, and don't try to play games with your user interface.
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 -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts How to save SYSLOG as text data via P... All Other Mainframe Topics 4
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
Search our Forums:

Back to Top