No, I don’t think you can call it from proc directly. You would have to run it. You probably need a wrapper program that would call your subroutine—unless jBase lets you run subroutines now. Last time I used jBase (quite a while ago) IIRC it didn’t allow you to CALL a program, or to EXECUTE a subroutine. A wrapper program can use SYSTEM(27) to determine if it is running from a proc and use PROCREAD to get the parameter from the input buffer, or SENTENCE() to get it from the command line (proc primary output buffer).
> On May 20, 2021, at 13:26, Joyce White <joycewhite...@gmail.com> wrote: > > So from your answer, it seems like I CAN call a jBASE subroutine from a proc, > just not with parameters? What is the syntax I would use to call a subroutine > with no parameters from a proc? > Joyce > > On Thursday, May 20, 2021 at 12:32:25 PM UTC-4 edclark wrote: > Unless there have been some enhancements to icl, I don’t think that you can > call a subroutine with parameters. > Your validation program can either parse the parameter from the command line, > or retrieve it with PROCREAD. It can use PROCWRITE to return its result, or > use STOP, and then the proc can check IF E > > >> On May 20, 2021, at 12:01, Joyce White <joycew...@gmail.com >> <applewebdata://37C14883-C324-4884-8C49-D44969B72EF2>> wrote: >> > >> Hi, I have a proc (jcl program) that needs a "date check". I'd like to write >> a jBASE function for the date check, then call it from within the proc, >> having it return to the proc after it checks the date. Is this doable? If >> so, what syntax would I use to call the jBASE function (LIFE.LEFT.b) from >> within the proc? >> >> I'm trying the line below and it's not working. My function is LIFE.LEFT, >> and it takes a parameter that the user enters in the previous line (%3). >> >> IF [LIFE.LEFT(%3)] = 1 GO 999 >> >> Thanks, >> Joyce >> > >> -- >> -- >> IMPORTANT: T24/Globus posts are no longer accepted on this forum. >> >> To post, send email to jb...@googlegroups.com >> <applewebdata://37C14883-C324-4884-8C49-D44969B72EF2> >> To unsubscribe, send email to jbase-un...@googlegroups.com >> <applewebdata://37C14883-C324-4884-8C49-D44969B72EF2> >> For more options, visit this group at >> http://groups.google.com/group/jBASE?hl=en >> <http://groups.google.com/group/jBASE?hl=en> >> >> --- >> You received this message because you are subscribed to the Google Groups >> "jBASE" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to jbase+un...@googlegroups.com >> <applewebdata://37C14883-C324-4884-8C49-D44969B72EF2>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/jbase/54d2fd8d-7d18-4e88-804d-a447e01a689dn%40googlegroups.com >> >> <https://groups.google.com/d/msgid/jbase/54d2fd8d-7d18-4e88-804d-a447e01a689dn%40googlegroups.com?utm_medium=email&utm_source=footer>. > > > -- > -- > IMPORTANT: T24/Globus posts are no longer accepted on this forum. > > To post, send email to jBASE@googlegroups.com > To unsubscribe, send email to jbase-unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/jBASE?hl=en > <http://groups.google.com/group/jBASE?hl=en> > > --- > You received this message because you are subscribed to the Google Groups > "jBASE" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to jbase+unsubscr...@googlegroups.com > <mailto:jbase+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jbase/1f0a6ff7-4f75-4f85-ad18-1dc8507fbbf2n%40googlegroups.com > > <https://groups.google.com/d/msgid/jbase/1f0a6ff7-4f75-4f85-ad18-1dc8507fbbf2n%40googlegroups.com?utm_medium=email&utm_source=footer>. -- -- IMPORTANT: T24/Globus posts are no longer accepted on this forum. To post, send email to jBASE@googlegroups.com To unsubscribe, send email to jbase-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/jBASE?hl=en --- You received this message because you are subscribed to the Google Groups "jBASE" group. To unsubscribe from this group and stop receiving emails from it, send an email to jbase+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/jbase/0A2D2064-9AB2-4F15-9205-672B46289C07%40aol.com.