CL: AS/400 question

440 pts.
Tags:
AS/400
CL
As/400 question: I am declaring 3 files in CL-ILE, How will CL differentiate between those 3 files? Will it be through the record format names? Does the concept of OPNID come into picture? Can anyone throw some light on what is OPNID and how CL can differentiate more than 1 file when it is declared? Thanks.

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: 3  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
  • ToddN2000
    Why would the CL have an issue if the file names are different or do the files all have the same record format name ? How are these files being used? Are you using the RCVF, OPNQRYF, OVRDBF or other command?Post your code and let's see what you are trying to do.
    11,285 pointsBadges:
    report
  • bvining
    When more than one file is declared in a CL program the OpnID is how you control which file is to be used by commands such as RcvF. The OpnID parameter of the DclF command defaults to *NONE, and this value is only allowed on one file in the program -- so you have to provide, in your example, an OpnID for at least two of your three files.     In addition to being how you specify what file is to be used, OpnID also influences the generated variable names for fields defined within the file record format.   I suggest you prompt the DCLF command, press F1 for help, and then F2 for extended help. You will find a reasonably good explanation of how OpnID is used.  
    6,495 pointsBadges:
    report
  • dinuas400
    Yes we can differentiate with OPNID..
    510 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