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.
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,
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
As an Amazon Associate we earn from qualifying purchases.
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.