|
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.
|