I need to list out files in IFS directory to PF in qtemp. I have used qshell command, below, in other program. But problem with qshell cmd is I cannot put result in qtemp.
QSH CMD('LS -lT /home/mydir/ > /qsys.lib/mylib.lib/myfile.file/mymbr.mbr')
Reason that I have to put in qtemp is because multiple users will run this program at the same time. So I don't want the listing result to override each other.
Other alternative will be list the files out in spoolfile then copy spool file to qtemp. The only command that I know that will print out the ifs files is DSPLNK. Problem with this command is it doesn't give the date/time stamp for each file. I would like to have either time stamp of when the file was created, modified, or put in the IFS folder. Another problem with the DSPLNK is when the file name is too long then it get truncated. Files that have long name will be list out at the bottom separate from the files that have short name.
result form DSPLNK
Object . . . . . . . : /mydir/*
Object type . . . . : *ALL
Detail . . . . . . . : *PRV
Display option . . . : *PRV
Directory . . . . : /mydir
Object link Type Attribute Text
customer_-0256937.xl > STMF
* * * Full text of truncated lines * * *
Thanks in advance for any help.