Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

send a reply to a msg in qsysopr from cl

send a reply to a msg in qsysopr from cl

send a reply to a msg in qsysopr from cl

Merry Christmas to All.

Is there a way to answer an inquiry message in qsysopr from with in a CL pgm?  The story is this, we get about 10-12 screens of printer not available messages everyday. So far we have to reply to them one at a time. I'm trying to automate the process of replying to them. I'm looking at dumping qsysopr to a splf then to a dbf, reading the dbf and then somehow sending a reply back to qsysopr. Right now, I'm stopped at the send the reply back part.

I'm headed in the right direction? Any ideas are appreciated.


Mike Butler
Iseries Guy -> PC's gone, SUNs gone - WooHoo
"Never put off 'til tomorrow what you should have done yesterday"

RE: send a reply to a msg in qsysopr from cl

The problem is to get the key of a specific message to send reply to the message in qsysopr msgq.
IMHO the only way to get the key is to read messages from qsysopr msgq until you find the message or message id you want.


dcl &keyvar *char  4  
dcl &msgid  *char  7  
dcl &msg    *char 80

loop: rcvmsg msgq( qsysopr ) +
             rmv( *no )keyvar( &keyvar )  +       
             msgid( &msgid ) msg( &msg )
if ( &msgid = ' ' ) return
if ( &msgid = 'CPx....' ) +                                 
 sndrpy msgkey( &keyvar ) msgq( mymsgq ) rpy( 'whatever' ) rmv( *no )
goto loop    

RE: send a reply to a msg in qsysopr from cl

Are the responses to the printer messages ALWAYS the same (ie. do you ALWAYS want the "Load form", "Verify alignment", "Operator action", etc messages answered with the SAME response EVERY time?

If so, you could always add a reply entry (ADDRPYLE) to the message ID, so it will automatically answer the message for you.

But be advised, that on a message such as "Operator Action required" with a reply of "R", this could cause a lot of messages to go to the sysopr queue, if the printer itself does need attention.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close