10 pts.
 lsdisk( command for a local wrklnk folder on the iSeries
I need to save a directory listing of a local wrklnk directory on our iSeries to a file, much the same way LSDISK( saves the names of files that live in a remote directory to a file. How is this done? Thanks in advance.

Software/Hardware used:
iSeries
ASKED: December 2, 2010  8:31 PM
UPDATED: December 3, 2010  7:52 AM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Just run ls against the directory and redirect the output to a file. If you have QShell installed, you can get to an appropriate command prompt by running the STRQSH command. Assuming the directory is /home/Tom, at the Qshell command prompt:

 == >  ls -Adl /home/Tom > /home/tomsfiles.txt

A detailed listing of the /home/Tom directory will be placed in /home/tomsfiles.txt.

Tom

 108,300 pts.