Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

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

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: REXX: Need text for user it looks like someone is typing it
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

Moderator Team Head


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

PostPosted: Thu Jan 13, 2011 12:16 pm    Post subject: Reply to: REXX: Need text for user it looks like someone is
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

Active Member


Joined: 07 Feb 2009
Posts: 982
Location: Oostende, Belgium

PostPosted: Thu Jan 13, 2011 3:52 pm    Post subject: Re: REXX: Need text for user it looks like someone is typing
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: 2422
Location: Netherlands, Amstelveen

PostPosted: Thu Jan 13, 2011 3:57 pm    Post subject:
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: 641
Location: Whitby, ON, Canada

PostPosted: Thu Jan 13, 2011 8:29 pm    Post subject:
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Thu Jan 13, 2011 9:44 pm    Post subject: Reply to: REXX: Need text for user it looks like someone is
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

Senior Member


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

PostPosted: Thu Jan 13, 2011 10:38 pm    Post subject: Reply to: REXX: Need text for user it looks like someone is
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: 641
Location: Whitby, ON, Canada

PostPosted: Thu Jan 13, 2011 11:25 pm    Post subject:
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    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Sun Jan 16, 2011 4:04 pm    Post subject: Re: REXX: Need text for user it looks like someone is typing
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    Post subject:
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

Site Director


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

PostPosted: Mon Jan 17, 2011 12:01 am    Post subject:
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: 7905
Location: Bellevue, IA

PostPosted: Mon Jan 17, 2011 3:39 am    Post subject:
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    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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts How to update a portion of text in a ... Bill Woodger DFSORT/ICETOOL 25 Wed Nov 09, 2016 9:41 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us