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
--~--~---------~--~----~------------~-------~--~----~
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