Hi All,
Let me start by stating I'm no QSHELL expert and most of my current code has come from Googling but I have managed to create a CLLE program that use SFTP via QSH to send and retrieve files from a Windows Server. My problem is that when there are no files to retrieve I get a QSH0005 Exit code 1 message back to the program as if an error has occurred. What I want to do is check if any files exist before attempting to retrieve them. I've found examples searching the IFS and even printing messages but none that simply tells my program a Yes or No files exist. I think it might be using the FIND command but I can't work out the syntax, has anyone got an example they can share ?
Many Thanks
Chris
Let me start by stating I'm no QSHELL expert and most of my current code has come from Googling but I have managed to create a CLLE program that use SFTP via QSH to send and retrieve files from a Windows Server. My problem is that when there are no files to retrieve I get a QSH0005 Exit code 1 message back to the program as if an error has occurred. What I want to do is check if any files exist before attempting to retrieve them. I've found examples searching the IFS and even printing messages but none that simply tells my program a Yes or No files exist. I think it might be using the FIND command but I can't work out the syntax, has anyone got an example they can share ?
Many Thanks
Chris
Comment