|
Jim, Just as a side note, you can handle this is a single CL. Use RTVJOBA to determine if a job is interactive (type=1) do the prompting then do a SBMJOB and return, if batch (type=0) GOTO the actual process, skipping the prompting. In the SBMJOB submit a command instead of a CALL to the CL, IMHO it makes the parameter passing a whole lot easier. Jim Langston wrote: > Hmm... Okay, very good point. This is the method I will use in the future, > then, and in fact have used on this one. > > The final application has 2 CLs, 1 Display file and one RPG. The initial > CL calls the display file and checks for F3 or F12. If not F3 or F12 it > SBMJOB's the second CL. The Second CL does an OVRPRTF and > calls the RPG program (which is why I needed 2 CLs and not just one). > > The one pain is the first CL converts the two numeric fields to alpha and > then passes them to the second CL. The second CL passes the numbers > as characters, as there's the imfamous 15,2 problem with passing numbers > between CL and RPG. All in all, though, I like the solution and is one I > have done in the past. If we later decide on a different interface (HTTP, > Client/Server, whatever) all we need to do is change the first CL which is > a very small program. > +--- | This is the RPG/400 Mailing List! | To submit a new message, send your mail to RPG400-L@midrange.com. | To subscribe to this list send email to RPG400-L-SUB@midrange.com. | To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
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.