Writing a RPGLE or CLLE program which clears multiple physical file by reading file names from a physical file

5 pts.
Tags:
AS 400
CLLE
RPGLE
I created a physical file which contains names of files which has to be cleared using CLRPFM. And write a RPGLE or CLLE to read from physical file, which files to clear.
1

Answer Wiki

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

Just use a CLLE. Create a loop and do a RCVF on you file then do your CLRPFM and loop until the file has completed. You may wan to add MONMSG command to check if file in use.

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.
  • TheRealRaven
    And what problem are you running into?
    36,440 pointsBadges:
    report
  • azohawk

    Does your file contain the name of the file AND the library?  You are using both values in your CLRPFM statement, correct? If the file is a multiple member file, you also have to specifiy the member.

    You didn't indicate a question, so can't give you further direction.

    4,055 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: