OVRDBF example

370 pts.
Tags:
AS/400
AS400 - COBOL
OVRDBF
I have been asked to prepare a small project in which we use a display file and and physical files. Now, I have to create a COBOL/400 program in which the user enters that name of the physical file and according to the name I have to enter empid and empname in that particular physical file. Now for this, I need to use the Command OVRDBF, but I don't have much idea of it and don't even know how to implement it. Kindly help me with this.

Software/Hardware used:
windows

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
    What about it? The system provides 'help' text for all system commands. What more do you need to know? . In general, the program would input a file name and use it as the TOFILE() parameter value of the OVRDBF command. The program will build the command as a string in a variable. The command string will look just like you would type it on a command line. . When the command string is built, you'll use it as the first parameter in a call to the QCMDEXC API. After the API processes the OVRDBF command, your COBOL program can OPEN the file. . But a description of the process is about as far as any discussion can go. Before any details can be given, you'll need to post actual code from your project. We can't supply code for you. . Tom
    125,585 pointsBadges:
    report
  • Durgesh813
    Thanks tom for your reply whatever you told i already knew i am a beginner, all i wanted was a basic implementation code in cobol400 which uses OVRDBF so that i can implement in my code, to be more precise i wanted to know how and where to include OVRDBF command in my cobol program so that i can use it.
    370 pointsBadges:
    report
  • TomLiotta
    "How" is in a program variable. "When" is before the program OPENs the file. . This seems obviously a 'beginner' question because it's not a reasonable business function. That's why code can't be provided. . Tom
    125,585 pointsBadges:
    report
  • Durgesh813
    thanks Tom i have just started learning as400 from a very bad teacher so thats why probably my question might seem absurd but whatever you told cleared the point thanks.

    370 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