AS/400 – Create logical file based on physical file

1215 pts.
Tags:
AS/400
Logical Files
I have physical file with 10 Members. I wanted to create logical file with 10 members based on Physical file members during compilation. Can you help me to create logical file with 10 members?

Software/Hardware used:
As400

Answer Wiki

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

When you issue the CrtLF or ADDLFM (add logical file member) use F4 for prompting you will see that both commands allow you to specify which physical file members are to be mapped by the Logical file member.
Phil

Discuss This Question: 2  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
    Can you clarify if you want your LF to have 10 members, one for each of 10 members in your PF? Or do you want your LF to have one member that includes 10 members of your PF all together? You might use the ADDLFM command in the first case. You might simply list the 10 PF members in the CRTLF DTAMBRS() attribute in the second case. The results may be very different depending on what you need. Tom
    125,585 pointsBadges:
    report
  • Splat
    This may be unnecessary, but don't forget to set the MAXMBRS() parameter on your physical and logical files.
    7,655 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