Thanks TOM, now You clarify my mind.
Today I try this examples, and after that I send a message on this question.
Regards,
Roberto
There is no function on the i5 to configure to auto save then FTP. Write a simple CL to SAVOBJ of type *JRNRCV then FTP to another system. You could add to the jobscde the day and time you want it to run.
===========================================================
Create a message queue with the CRTMSGQ command. When you create a journal, name that message queue on the CRTJRN MSGQ() parameter. (You can also use the CHGJRN MSGQ() parameter if the journal already exists.) Also set the MNGRCV(*SYSTEM) attribute on the journal.
Then, whenever the system detaches a receiver in order to attach a new one, message ID CPF7020 will be sent the configured message queue.
You might have a different queue for different journals or have many journals linked to the same *MSGQ. Regardless, set up an auto-start job for one of your subsystems or have your startup program submit a never-ending job to some job queue like QSYSNOMAX. Have the program attach a break handler to the message queue.
Your break handler will be called when a message arrives on the *MSGQ. Have it receive messages and react to CPF7020. When that message ID is seen, save the receiver into a savefile and kick off a job that transfers the savefile when the save finishes.
Tom
Discuss This Question: 2  Replies