Q
Problem solve Get help with specific problems with your technologies, process and projects.

How does one use RCVJRNE?

I am trying to use RCVJRNE to apply journal entries to a physical file. I have a CL that receives the journal entries and passes the parameters to an exit program. However, no values seem to be sent to the exit program variables. I can display the journal entries on the screen, and I can see that all the entries that I need are there. When I run the CL (containing the RCVJRNE command) and then run debug over the exit program, the first parameter (*char 300) is blank as well as the second parameter (*char 1). The program cycles through the code as many times as there are entries in the journal, even though the parameters passed to it are blank. What am I doing wrong? Also, would RCVJRNE be used the same way on a remote journal?

This could be a myriad of problems. If your CL is a CLP and your exit program is an ILE, it could be a problem between the OPM object running in a separate activation group. If you call the CL and have data in the parameters being passed and none in the program receiving the parameters, you might have the *ENTRY in an *INZSR routine which would not be executed the second time the process is called. I would suggest you have an ILE call a CLLE to retrieve the journal entries.

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

The Best Web Links: tips, tutorials and more.

Ask your programming questions--or help out your peers by answering them--in our live discussion forums.

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


Dig Deeper on iSeries ILE programming

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