Which file-member is in use by the program?

Tags:
AS/400
CLLE
Within a CLLE program, I want to know which file-member the program is using. Is there a command that can be used to see the actual member that is in use?
1

Answer Wiki

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

Kind of a strange question. A program will use the first member of a multi-member file. Unless you override it manually. You could try the WRKJOBA command with *FILOVR option to see the overrides.

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.
  • azohawk

    Todd is correct.

    If you need to override the member, you will likley want to use the OVRDBF  command in a CL program that calls your RPG program.

    You can set up a file override in you F specs to use a specific member, but it would require that the same member always be used, the OVRDBF command can by more dynamic. 

    4,055 pointsBadges:
    report
  • StanleyMarcus
    You can also use variable names in that F-spec to dynamically name the file, library and member -- but of course you also need to use USROPN in that case.
    20 pointsBadges:
    report
  • StanleyMarcus
    If you can run a DSPJOB against the job in question, you can select option 14 - Open files, and it will show the actual library, filename and member name that is currently in use.
    20 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: