How to create PF without member

Tags:
AS/400
Physical File
Is it possible to create physical file without a member? If possible, please let me know method of creating PF.
1

Answer Wiki

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

                  
 CRTPF FILE(FILE)  
       MBR(*NONE)  
                  

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.
  • ToddN2000
    Why would you want to create a file with no member? Without a member it cannot contain data I believe. It will give you an error if you try and write to it.
    135,525 pointsBadges:
    report
  • GregManzo
    Actually you get the error when you try to open it. The reason would depend on the application. We use to have a sales data polling process that would add a member to an intermediary file for each store/day and remove them once processed. We knew all data was up-to-date when there were no members.
    Another example is QxxxSRC files with one member per program, but you start with MBR(*NONE).
    2,970 pointsBadges:
    report
  • Splat
    ToddN2000, I can think of a couple reasons. If the file is a reference file, there's no need for a member. If the file is going to contain multiple members there's no need for a member at the time of creation.
    12,915 pointsBadges:
    report
  • ToddN2000
    I forgot about the reference file not needing a member, Splat. Most likely because we only have one of those on our system. And true, you do not need a member that matches the file name. A matching member name will be created if you use the default compile options.
    135,525 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.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: