How to declare two members one as input and one as output of same source using F-SPEC?

25 pts.
Tags:
F Spec
hi team, I have two PF members (A and B ) in one source X. I have added these members using ADDPFM command.Now I want to read A and write to B. Please suggest me how to declare using F-SPEC? Thank you.

Answer Wiki

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

Discuss This Question: 4  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
  • TomLiotta
    You have to give us enough information first. What OS version are you compiling on and what versions will the program run on? -- Tom
    125,585 pointsBadges:
    report
  • BigKat
    hint: multiple f-specs and either extmbr keyword or setting up an ovrdbf first
    7,935 pointsBadges:
    report
  • MAHI37
    hi Tom, i am using V5R4M5 and progarm runs on the same. thank you.
    25 pointsBadges:
    report
  • TomLiotta
    First, V5R4M5 should be the LIC version. The OS version would be V5R4. But that tells us enough.   You can't have two F-specs with the same file name. If you need two F-specs for the same file, one of them (or both) will need to be named different from the external database file. You could use an OVRDBF command to override to the actual file name when the program runs. And you would also need to override the name in the job that runs the CRTRPGMOD or the CRTBNDRPG command when you compile.   An alternative is to use CRTDUPOBJ to create duplicates of the file description object giving new names that match the F-specs. No overrides are needed at compile-time if file descriptions exist. They only need to exist when the program compiles, and they can be in any library in the compile-time library list. No data is needed, nor are members, in temporary duplicates. The only supply file and field descriptions for the compiler.   Overrides at run-time aren't absolutely necessary either. Use the EXTFILE(filename) keyword to point to the actual file at run-time if you don't want to use a run-time override. You can also use the EXTMBR(membername) keyword to set different member names at run-time.   Use the facility that you prefer. Either use overrides with OVRDBF or use the keywords.   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