How can I list or retrieve in a cl program the STMF files under a specific directory?
Urgent reply requested.
I am running a cl program that run use a software package that runs decryption on a group of stmf data with variable name. I need to retrieve the names in my cl to do further processing.
Or have a way to list them to an iSeries data file.
Software/Hardware used:
ASKED:
April 9, 2009 5:18 PM
UPDATED:
April 13, 2009 7:37 PM
If you can get to the directory through the IFS you can use QSHELL commands
The command would be something like “QSH CMD(ls -l directory > qsysFile)” and then use a simple DSPPFM to view the file.
“ls -l” is the Unix command to list a directory. There are lots of Unix references on the web – This is one.
“directory” is the path to the directory you want to list
“>” send the listing to a file
“qsysFile” is the file you want to put the listing in. This should be formatted as
Then to look at the directory use the command
Hope this helps.
Regards
Mike