Q
Evaluate Weigh the pros and cons of technologies, products and projects you are considering.

Interrupting a user's session

One user writes, "I want to send the user a message that will interrupt their session and remind them to transmit the payroll. Right now I send break messages throughout the day. The user doesn't want the reminder if they already executed the job. The job was programmed by an outside vendor so I can't directly access it. I want to be able to send a break message that the user can enter a value into to indicate that the job was run and no more reminders will be sent for that week. " Development expert John Blenkinsop offers some advice.

I want to send the user a message that will interrupt their session and remind them to transmit the payroll. Right now I send break messages throughout the day. The user doesn't want the reminder if they already executed the job. The job was programmed by an outside vendor so I can't directly access it. I want to be able to send a break message that the user can enter a value into to indicate that the job was run and no more reminders will be sent for that week. Do you have any ideas?
Create a file containing the user IDs and a flag to say the user has sent their payroll. Create a CL program that reads the file. In the program, if the flag is not set for a user, send an inquiry message (*INQ) and receive the reply. If the reply value is 'y' or 'Y' (the message being "Have you sent your payroll yet?"), run an RPG program to update that record (key is User ID) to set the flag.

At the beginning of each week, run an RPG program to reset the flags in the file. Then you can run your CL program whenever you feel like it and it will message people until they reply that they have sent their payroll.

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

The Best Web Links: tips, tutorials and more.

Visit the ITKnowledge Exchange and get answers to your developing questions fast.

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

Dig Deeper on iSeries application development tools

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close