COBOL AS/400 – Using same field name from two different files

5 pts.
Tags:
AS/400
COBOL
Physical File
Hi, I have modified a program by adding a physical file with fields fielda, fieldb and fieldc. I am also using its logical file in the program. I have redefined the physical file's record format and changed the fields name. I used redefined keyword in logical file and used filler and changed the name of fieldc to fieldcc. When I compiled my program, I am getting LBL1463 error which says that fielda, fieldb and fieldc are aleady in use. I found that one of the file which was already used in the program have three fields fielda, fieldb and fieldc. Now I am not sure how to correct this compile error. Can somebody help me on this? Thank you

Software/Hardware used:
AS400 IBM COBOL

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: 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

    Use qualification. E.g.:

    MOVE fielda OF file1-Rcd TO fielda OF file2-Rcd

    Qualification will determine which group structure a field will come from. You should show us your definitions so we can show actual examples.

    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