Problem solve Get help with specific problems with your technologies, process and projects.

Emitting sound from RPG

This tip shows you an easy way to emit sound from RPG.

You can easily do a beep from your RPG program (for example indicating finished job)

       H DFTACTGRP(*NO) BNDDIR('QSNAPI')                                 
                   
     Dbeep             pr                  extproc('QsnBeep')          
     Dhandle                          9b 0 value                       
     Dhandle2                         9b 0 value                       
     Derrcode                        10    OPTIONS(*OMIT)              
     Dreturn                          9b 0 Options(*OMIT)              
     C                   callp(e)  beep(0:0:*omit:*OMIT)               
     C                   eval      *inlr = *on  

==================================
MORE INFORMATION ON THIS TOPIC
==================================

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

Ask the Experts yourself: Our application development gurus are waiting to answer your programming questions.


Dig Deeper on iSeries CL programming

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close