|
Luis Fernandes wrote:
My question is : Sometimes the program need to receive parameters, and i
need to pass this parameters to run the program correctly, but in the most
time i dont know if the program need parameters or not and what kind or type
of data they need. What is the way to check if a program need parameters or
not and what datatype i need to pass.
If you don't know if the program takes parameters or not ... or the number & type of parameters ... how can you logically invoke the program at all?
You'll need to find out, from the developers of the program, what parameters it needs.
i looking also for a way to find program and they full path in the iseries
only using their name, there is any way to find them in the system ?
something like a search in the windows.
You could theoretically search the entire /QSYS.LIB IFS space for the program ... but that would take a massive amount of time.
Keep in mind the program could exist in multiple libraries on a single system.
BTW: I suggest using PCML to make program calls instead of ProgramCall objects. Much easier to work with.
david
--
IBM i on Power Systems - For when you can't afford to be out of business
--
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L) mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.