Delete objects on AS/400

1150 pts.
Tags:
AS/400
AS/400 Object Cleanup
AS/400 objects
CL Program
Hi I have a list of objects arranged alphabetically, I want to delete these objects in that order from a iseries server, can somebody help me how to write a CL for this?

Software/Hardware used:
ibm i

Answer Wiki

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

Is this list in machine readable format?
Do you also have the library name the object is in?
Do you have the Obejct type?
*
PGM

DLTxxx LLL/Onject
DLTxxx LLL/Onject
DLTxxx LLL/Onject
..
..
ENDPGM

xxx = Object type (F, PGM, etc)
LLL – Library that contains the object

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
  • TomLiotta
    I have a list of objects arranged alphabetically... CharlieBrowne's comment works well if you have a specific list. It's perfectly valid just to run the exact sequence of DLTxxx commands. If the list needs to change periodically, then you probably want a program that adapts automatically to new lists. First question is -- how is the list stored? Is it in a database file? In a text file? Then, what values are in the list? Name of object? Library of object? Type of object? And what is your OS version/release? Newer releases have better programming options. Tom
    125,585 pointsBadges:
    report
  • Splat
    If the file records must be processed alphabetically, you might consider using OPNQRYF to ensure the records are in the correct sequence.
    7,055 pointsBadges:
    report
  • Supriyoas400
    If the list is in a file..you have to read the file in sequence. for 1st object,you have to do a chkobj..if exists ,you do DLTxxx command based on object type...if sucessful go to next one..till end of file.
    130 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