Hi Maria
You tried to ftp the ls command
Did you try to run it the QSH way?
I know that we use it - but cannot locate an example
Alan Shore
Solutions Architect
IT Supply Chain Execution
[cid:image001.png@01D79FE7.0B07C7C0]
60 Orville Drive
Bohemia, NY 11716
Phone [O] : (631) 200-5019
Phone [C] : (631) 880-8640
E-mail : ASHORE@xxxxxxxxxxxxxxxxxxxx
'If you're going through hell, keep going.'
Winston Churchill
From: MIDRANGE-L [mailto:midrange-l-bounces@xxxxxxxxxxxxxxxxxx] On Behalf Of Maria Lucia Stoppa
Sent: Thursday, September 2, 2021 8:34 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: [EXTERNAL] How to provide an RPG ILE program with a list of files in a QNTC directory
Hi all,
Hope you are all fine.
For a new RPG ILE procedure, I have to list the content of a directory
defined under QNTC.
The directory is reachable and readable by a specific user and from within
WRKLNK everything works fine.
Now, I am looking for the right technique, or simply the most appropriate,
to list the directory content inside an RPG ILE program.
These are my unsuccessful tries, all executed under the owner control and
authorization:
1. RTVDIRINF DIR('/QNTC/FS1-21/myFolder') -> final files are empty
2. ftp '127.0.0.1<
http://127.0.0.1>' -> ls -l /QNTC/FS1-21/myFolder -> "Path does not
exist"
3. via SQL from TABLE(IFS_OBJECT_STATISTICS) -> explicitly won't work
and I couldn't find a better choice
The only successful try was:
DSPLNK OBJ('/QNTC/FS1-21/myFolder/*') OUTPUT(*PRINT)
which obliges me to read the spool file right after.
I unsuccessfully looked through midrange.com archives and neither was the
IBM official documentation of help.
Is coding using API the only alternative?
Thank you all and have a great day
Lucia
--
Maria Lucia Stoppa
mlstoppa@xxxxxxxxx<mailto:mlstoppa@xxxxxxxxx>
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L@xxxxxxxxxxxxxxxxxx>
To subscribe, unsubscribe, or change list options,
visit:
https://lists.midrange.com/mailman/listinfo/midrange-l<
https://lists.midrange.com/mailman/listinfo/midrange-l>
or email: MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx<mailto:MIDRANGE-L-request@xxxxxxxxxxxxxxxxxx>
Before posting, please take a moment to review the archives
at
https://archive.midrange.com/midrange-l<
https://archive.midrange.com/midrange-l>.
Please contact support@xxxxxxxxxxxxxxxxxxxx<mailto:support@xxxxxxxxxxxxxxxxxxxx> for any subscription related questions.
Help support midrange.com by shopping at amazon.com with our affiliate link:
https://amazon.midrange.com<
https://amazon.midrange.com>
As an Amazon Associate we earn from qualifying purchases.