0 pts.
 Anyone ever use the SNDRPY command in CL?
I am using the CHGPF command to change a file. I know it will result in data loss, and I will get a messaage that I must reply "I" to ignore and then it will change the file. The file is used all day long and I would like to have a CL program change it after hours. I found the SNDRPY command that seems like it will do what I need, but it wants a message reference key. I don't know what this message reference key is or how to find it. It's supposed to be a 4 digit alpha field. Has anyone tried this, or at least knows how to find the message reference key? ---Dale

Software/Hardware used:
ASKED: December 12, 2005  4:56 PM
UPDATED: December 14, 2005  8:30 AM

Answer Wiki:
Hi Dale In your CL program you can monitor for the message and then use the RCVMSG command to retrieve the key (if I remember correctly, it's the KEYVAR parameter). An alternative method would be for your out of hours job to add an entry to the system reply list (ADDRPYLE) to add the "I" response and then to use the RMVRPYLE command to remove it at the end of the job. You can specify comparison data so the message only gets replied to automatically for the correct file. Hope it helps Jonathan
Last Wiki Answer Submitted:  December 12, 2005  5:19 pm  by  astradyne   370 pts.
All Answer Wiki Contributors:  astradyne   370 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

I ended up running from home after hours.

But the RCVMSG looks like what I needed. I will test it further next time.

I had forgotten about the system reply list, ADDRPYLE. That would likely have worked, but I sure wouldn’t want to leave that as default.

Thanks for two ways to skin the cat.

—Dale

 0 pts.