I am attempting to list an IFS directory that contains 65,000 images using the following commands in a CL program.
CD DIR(&PATH)
QSH CMD('ls -tr *.*')
It writes this error to the STDOUT file
qsh: 001-0078 Process ended by signal 5.
Researching this it appears that there is a limit to the entries that QSH can list.
From an IBM help document:
The boundary on the number of arguments allowed to be passed to the ls, rm, or other similar Qshell commands is 16,383. The above messages will be generated if the user is attempting to pass in more than 16,383 arguments. That is, if the pattern matches 16,383 objects, the utility will work. If the pattern matches 16,384 objects, the utility will fail.
So it appears doing a QSH list on any folder with more than 16373 entries will fail?
TIA.
Tom Deskevich
Harriscomputer
Tom Deskevich
Programmer/Analyst
P: 814-472-6066 x134
F: 814-472-5019
E: TDeskevich@xxxxxxxxxxxxxxxxxx
[cid:HLG_logo_eccde356-f9d5-496b-9e38-e7802fb467a8.jpg]
172 Gateway Road PO Box 568
Ebensburg, Pennsylvania
15931
www.harrislocalgov.com<file:///C:/Users/jk80512-admin/AppData/Local/Temp/3/b4357967-469d-46e6-96e1-8cc4b2032841/www.harrislocalgov.com>
This message has been sent on behalf of a company that is part of the Harris Operating Group of Constellation Software Inc. These companies are listed here<
http://subscribe.harriscomputer.com/>.
If you prefer not to be contacted by Harris Operating Group please notify us<
http://subscribe.harriscomputer.com/>.
This message is intended exclusively for the individual or entity to which it is addressed. This communication may contain information that is proprietary, privileged or confidential or otherwise legally exempt from disclosure. If you are not the named addressee, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this message in error, please notify the sender immediately by e-mail and delete all copies of the message.
As an Amazon Associate we earn from qualifying purchases.