nicholasj1088
Member
Hello,
I'm needing some assistance with executing a QShell command on and AS/400 IBM iSeries running JDE E1 Tools Release 9.2.7.1. Let me start by saying I don't know much of anything about AS/400. The command is meant to read all of the file names and folders within a specified path and write them all to a new text file with a specified file name within a specified path. The newly created file will then be processed later in the UBE with standard JDE BSFNs. When the command is executed directly on the AS/400 green screen, it works as expected, but when executed from B34A1030 - Execute External Program via custom UBE on the server, it doesn't work as expected and no errors are in the jdedebug logs for B34A1030. Processes using the BSFN to execute other AS/400 commands are working as expected. Below are the commands that have been tested on the server, but fail to create the FileNames_date_time.txt file. Any assistance is greatly appreciated!
QSH CMD('ls /subdirectory/subfolder > /subdirectory/subfolder/FileNames_date_time.txt')
STRQSH CMD('ls /subdirectory/subfolder > /subdirectory/subfolder/FileNames_date_time.txt')
SBMJOB CMD(QSH CMD('ls /subdirectory/subfolder > /subdirectory/subfolder/FileNames_date_time.txt'))
SBMJOB CMD(STRQSH CMD('ls /subdirectory/subfolder > /subdirectory/subfolder/FileNames_date_time.txt'))
I'm needing some assistance with executing a QShell command on and AS/400 IBM iSeries running JDE E1 Tools Release 9.2.7.1. Let me start by saying I don't know much of anything about AS/400. The command is meant to read all of the file names and folders within a specified path and write them all to a new text file with a specified file name within a specified path. The newly created file will then be processed later in the UBE with standard JDE BSFNs. When the command is executed directly on the AS/400 green screen, it works as expected, but when executed from B34A1030 - Execute External Program via custom UBE on the server, it doesn't work as expected and no errors are in the jdedebug logs for B34A1030. Processes using the BSFN to execute other AS/400 commands are working as expected. Below are the commands that have been tested on the server, but fail to create the FileNames_date_time.txt file. Any assistance is greatly appreciated!
QSH CMD('ls /subdirectory/subfolder > /subdirectory/subfolder/FileNames_date_time.txt')
STRQSH CMD('ls /subdirectory/subfolder > /subdirectory/subfolder/FileNames_date_time.txt')
SBMJOB CMD(QSH CMD('ls /subdirectory/subfolder > /subdirectory/subfolder/FileNames_date_time.txt'))
SBMJOB CMD(STRQSH CMD('ls /subdirectory/subfolder > /subdirectory/subfolder/FileNames_date_time.txt'))