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

Senior Member


Joined: 07 Feb 2009
Posts: 1002
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: 2429
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: 647
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: 10231
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: 2033
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: 647
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: 7992
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 REXX cdoe to purge a JOB from spool a... Sulabh Agrawal CLIST & REXX 11 Thu Mar 09, 2017 11:36 am
No new posts IMS region inactive - User abend code... gthmrj IMS DB/DC 5 Tue Mar 07, 2017 12:29 pm
No new posts User Cancels the job PANDU1 DB2 1 Sat Mar 04, 2017 8:21 pm
No new posts Overriding PS data in rexx Shaheen Shaik CLIST & REXX 8 Fri Mar 03, 2017 5:08 pm
No new posts REXX compiled via RXTCOMP sergeyken CLIST & REXX 7 Tue Feb 07, 2017 9:41 pm


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