Count the number of objects within a folder on an iseries IFS drive

10 pts.
Tags:
AS/400
IFS
IFS Directory
Hello, Im looking for a way to Count the number of objects within a folder on an iseries IFS drive.  I cannot find any native commands to accomplish this...

Any ideas are very appreciated

Thanks in advance

 

Dino

 



Software/Hardware used:
iSeries

Answer Wiki

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

I do not know of any native green screen command but have used iNav to display this for years. Just start iNav and under the i5 your working on, open File Systems then Intergrated File System. Expand the Root to view all the directories. Right click on the directory you want to view then select Properties. The total Files and Folders will be listed under the Storage tab next to Contents.

Use the command RTVDIRINF, prompt, and enter the directories you want information on. The helps will guide you through this and tell you the naming convention of the outfile that will be created. You can query it or use PRTDIRINF for a report..

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.

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
    Which file systems would you need to count objects within? Just /root? Or other IFS file systems such as /QOpenSys? /QSYS.LIB? /QNTC? Are there object types that shouldn't be counted? Symbolic links? Should symbolic links be followed? Are subdirectories counted as objects? Or will you only count streamfiles? (Are subdirectories followed?) Tom
    125,585 pointsBadges:
    report
  • Whatis23
    RTVDIRINF, thanks Dan, learned something new which is always great!
    5,665 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