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).


Dig Deeper on RPG iSeries programming

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close