Thanks for the response folks,

>From JCL I'm calling the JBASIC program using HRUN "Program_Name %1"
In the Basic program I am retrieving %1 using the "myVariable =
SENTENCE(1)" as Pat suggested above which works.

I'm using someone elses JCL program to call my Basic program.

PROC is UGLY!

Thanks again,

Walt

On Dec 3, 10:42 am, Rick Weiser <[EMAIL PROTECTED]> wrote:
> That is one way Pat, but another that will work in all versions is:
>
> HProgram_name
> STON
> Hmy_text
> P
>
> Then one of the first lines in Program_name should be:
>
> INPUT myvariable
>
> I hope this helps,
>
> Rick
>
> On Dec 2, 10:07 pm, pat <[EMAIL PROTECTED]> wrote:
>
>
>
> > How are you 'calling' the Basic program from jCL ?
>
> > Are you 'executing' the Basic program with a :
>
> >    HProgram_name
> >    P
>
> > in the jCL proc ?
>
> > If so, you could pass the 'variable' as a parameter to the command
> > line, eg :
>
> >      MV %1 'Mydata'
> >      HProgram_name       <--- note : you require a space at the end of
> > this line, in order to obtain a space before the 'parameter'
> >      A
> >      P
>
> > and retrieve the 'variable'  within the Basic program using :
>
> >     passed_variable = SENTENCE(1)
>
> > or without specify anything other than :
>
> >      HProgram_name
> >      P
>
> > ,to 'call' the Basic program from jCL, you can retrieve the entire jCL
> > input buffer ('%' buffer ) using :
>
> >     PROCREAD  passed_variables ELSE CRT 'This Basic program was
> > probably not called from jCL'
>
> > in the Basic program.
> > [ Although the 'PROCREAD' does not appear to be working in my current
> > version of jBASE 4.1.5 ;-(
> > jBASE 3.4 should be fine though ;-( ]
>
> > Pat.
>
> > On 2 Dec, 18:08, ww <[EMAIL PROTECTED]> wrote:
>
> > > I have an application I'm writing in JBASIC which will be called from
> > > a JCL application. How do I pass a variable from JCL to JBASIC.
>
> > > Thanks in advance,
>
> > > Walt- Hide quoted text -
>
> - Show quoted text -

--~--~---------~--~----~------------~-------~--~----~
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to