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

Inbuilt function to make a BEEP sound through a REXX program


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
isnehil
Warnings : 1

New User


Joined: 10 Oct 2007
Posts: 23
Location: mumbai

PostPosted: Wed May 21, 2008 3:29 pm
Reply with quote

Hi all,

Can anyone please tell me if there is any inbuilt function to make a BEEP sound through a REXX program.

Thanks in advance....

~ Snehil
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Wed May 21, 2008 3:30 pm
Reply with quote

what environment ??
Back to top
View user's profile Send private message
isnehil
Warnings : 1

New User


Joined: 10 Oct 2007
Posts: 23
Location: mumbai

PostPosted: Wed May 21, 2008 3:44 pm
Reply with quote

Hi enrico,

thanx for your reply. My program is in MSYS (test env).. MVS batch

Could you please shed some light on the beep function in REXX please.
I searched in the forum, but couldn't find a satisfactory answer.

Thanks,

~ Snehil
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10903
Location: italy

PostPosted: Wed May 21, 2008 3:47 pm
Reply with quote

that' s why I asked about the environment

In a ISPF dialogs You can display messages sounding the alarm ,
I am afraid that in plain rexx it is not possible
Back to top
View user's profile Send private message
isnehil
Warnings : 1

New User


Joined: 10 Oct 2007
Posts: 23
Location: mumbai

PostPosted: Wed May 21, 2008 4:11 pm
Reply with quote

Thanks Enrico...
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Wed May 21, 2008 11:22 pm
Reply with quote

The 3270 supports it. ISPF can do it. Should be doable from rexx!

I googled and found information about 3270 Data Stream Programming. One page had an assembler example. I think it is just a matter of getting a particular string of characters to the 3270 and it will try to do it.

I converted the assembler example to a simple rexx program which writes to the screen and also sounds the bell.
Code:

/*rexx */                               
Say ,                                   
'C7114BF0'x || '1DF0'x || '2841F2'x ||, 
'2842F6'x || 'HELLO, WORLD!' || '1DF0'x 


I know this example is awkward for what was asked, but I figure this may help a little and someone else can take it a step farther.

Actually, it seemed like isnehil wanted to beep from MVS batch, but that is not possible at all.
Back to top
View user's profile Send private message
isnehil
Warnings : 1

New User


Joined: 10 Oct 2007
Posts: 23
Location: mumbai

PostPosted: Thu May 22, 2008 10:08 am
Reply with quote

Thanks for your reply Pedro....

However, can you please tell me how to BEEP from ISPF?

Thanx mate...
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu May 22, 2008 9:36 pm
Reply with quote

It can only do it in conjunction with an ISPF message

1. add a message to your ISPMLIB concatenation. The message definition should specify .ALARM=YES

2. use Address ISPEXEC "SETMSG MSG(yourmsg)" to cause message to be displayed.
Back to top
View user's profile Send private message
View previous topic : : View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts REXX to get all Dataset names from a ... CLIST & REXX 5
No new posts Instream REXX? JCL & VSAM 13
No new posts CEMT using Rexx? Help please CLIST & REXX 3
No new posts get submitted JCL from SDSF with REXX... CLIST & REXX 2
No new posts FUNCTION ADD-DURATION COBOL Programming 11
Search our Forums:


Back to Top