|
Ack! I added the line Return i after the line Say i, and it actually gave the result to me on the message line. So, I can take out the Say and it will do exactly what I want it to do, and I think it will do exactly what you want it to do. there does seem to be a problem though. It won't return a decimal number, only integers!! Regards, Jim Langston Eric Panissard wrote: > Hi Jim, > > I tried REXX too on my side. > It' seems that I was looking for. > To execute REXX source from the command line you need to use STRREXPRC > I tried it and it works fine, also you can use this command inside a CL > program > Now I am looking for how to retrieve the result inside my CL program and how > to skip > the REXX screen. I only need a result not an interactive screen. > > Eric Panissard > > -----Message d'origine----- > De : Jim Langston <jlangston@conexfreight.com> > À : MIDRANGE-L@midrange.com <MIDRANGE-L@midrange.com> > Date : jeudi 23 décembre 1999 03:00 > Objet : Re: text equation > > >Okay, REXX is easy to use. > > > >I created a source file called QREXXSRC and created a > >member called testing. I then entered the source code shown > >below, saved it, and then did a 16 on the member. After being > >told that my argument wasn't a regular expression, I did a 16 > >and hit F4, then typed in 1 + 2 * 3 as the parameter. A screen > >popped up and told me 7. > > > >Now I only have one question. How do I run a REXX procedure > >from the command line? > > > >As it is, I now have a calculator for the AS/400. > > > >Regards, > > > >Jim Langston > > > >Douglas Handy wrote: > > > >> Eric, > >> > >> >I never used REXX, do you have exemple or a good way to learn what I can > do > >> >with it. > >> > >> I don't use it either -- but it is what you may want to use in this > >> case. REXX is included on every system as part of OS/400 so your > >> machine will definitely be able to support it. > > > ><SNIP> > > > >+--- > >| This is the Midrange System Mailing List! > >| To submit a new message, send your mail to MIDRANGE-L@midrange.com. > >| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > >| To unsubscribe from this list send email to > MIDRANGE-L-UNSUB@midrange.com. > >| Questions should be directed to the list owner/operator: > david@midrange.com > >+--- > > > > +--- > | This is the Midrange System Mailing List! > | To submit a new message, send your mail to MIDRANGE-L@midrange.com. > | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. > | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. > | Questions should be directed to the list owner/operator: david@midrange.com > +--- +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-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.