Q
Problem solve Get help with specific problems with your technologies, process and projects.

Create a CL where it retrieves all the objects in a library.

How can I create a CL where it retrieves all the objects in a library and the last date used?


To list all objects in a library, try:

 
DSPOBJD OBJ(THELIBRARY/*ALL)
        OBJTYPE(*ALL)
        DETAIL(*FULL)
        OUTPUT(*OUTFILE)
        OUTFILE(MYLIBRARY/MYFILE)

In myfile, ODUCEN is the last used century (1 character: 0 for 1900, 1 for 2000) ODUDAT is the last used date (6 characters in mmddyy format).


This was last published in June 2001

Dig Deeper on RPG iSeries programming

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close