AS/400 : DB2/400 file override

160 pts.
Tags:
DB2/400
OVRDBF
I have following scenario:-

- in CL, override on PF to share ODP

- Calling PGMx where above PF will be open using OPEN operation.

- In PGMx,once file is open,calling another pgm(PGMy) to read the same file ( PF ) for specific record using READ operation (without SETLL ).

Question : Record pointer in PGMy will be first record or next consequent record which read in PGMx

 

ASKED: December 18, 2009  9:51 AM
UPDATED: December 19, 2009  7:10 AM

Answer Wiki

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

With the Shared ODP there is only one “pointer” managed by the DBMS so if the PrgY reads a record and then ends and then PrgX reads a record it has the same effect as if prgX reads twice. Anything that moves the pointer moves it for the ODP .. read, setll, setgt, chain and if the file hits EOF it’s at EOF for all programs.
Phil

Discuss This Question: 1  Reply

 
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
  • TomLiotta
    What is specified for the OVRSCOPE() and OPNSCOPE() parameters? What activation groups are involved? What OPEN modes are used by the two programs -- input, output or both? 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