JRNRCV

440 pts.
Tags:
AS/400
Hi people, How can I configure my system AS/400 when the Journal Receiver is detached and automaticaly save to a savefile and send to another server by a ftp command ?

Answer Wiki

Thanks. We'll let you know when a new response is added.

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

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • YMjK5oDo
    Use REMOTE journals.
    105 pointsBadges:
    report
  • TomLiotta
    Review the <help> text for the MSGQ() parameter to get an understanding of the messages that your break-handler might receive. You will want to decide if and how your program will react for different possible messages. You might handle them or ignore them, but you will need to expect them to show up. I would strongly recommend that you not use any existing message queue, nor should you allow other processes to send unexpected messages to this queue. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following