Data validity vs. CL program with OVRDBF command submitted 10 times simultaneously

10 pts.
Tags:
CL Program
OVRDBF
RPGLE
Would I be able to process the file correctly if I would have a CL program submitted 10 x simultaneously that contains OVRDBF. Behavior is similar to multi threading and this would really help process a very large file with less time. OVRDBF is necessary to point to the correct file member prior to RPGLE program call.


Software/Hardware used:
iseries, CLLE
1

Answer Wiki

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

It depends on the application. By running that many at one time you may increase the chance of record locks, try to update data that may not be there yet, have validation check fail for the same reason. If this is just to dump or consolidate data into another file then it would probably work fine. If there is another process to be run after all 10 have finished you may have to play around with some other logic like setting flags in a dataarea to know all 10 have completed.

====================================================
If each instance of program is pointing to a different member, record locks shouldn’t be an issue.

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.
  • Splat
    Depending on your OS release, OVRDBF is not necessary to point to a particular file member. You can use the EXTMBR keyword on the F spec to point to the member.
    12,895 pointsBadges:
    report
  • BigKat
    If the data you are processing in the overridden file is independent of each other (that is, no record requires another record to already have been processed) then this will speed things up provided you have enough memory and processor(s) allocated to the system partition you are running in.
    9,460 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.

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

Following

Share this item with your network: