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
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.