View previous topic :: View next topic |
Author |
Message |
ha.rajamohamed Beginner
Joined: 29 Jan 2006 Posts: 71 Topics: 22
|
Posted: Fri Feb 03, 2006 4:39 am Post subject: Passing values between rexx program |
|
|
I am having two rexx program. Through program A i am writing a JCL where I am trigering a Rexx program B. Now I need to pass a value from program A to program B. Is there any way to pass the values.? |
|
Back to top |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Fri Feb 03, 2006 6:22 am Post subject: |
|
|
Since you're building the JCL for program B, can't you just write the variable contents into the JCL as an input file for program B? _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
 |
ha.rajamohamed Beginner
Joined: 29 Jan 2006 Posts: 71 Topics: 22
|
Posted: Fri Feb 03, 2006 7:28 am Post subject: |
|
|
Mervyn, another question, how to get a variable content. _________________ RAJA MOHAMED |
|
Back to top |
|
 |
Mervyn Moderator

Joined: 02 Dec 2002 Posts: 415 Topics: 6 Location: Hove, England
|
Posted: Fri Feb 03, 2006 9:42 am Post subject: |
|
|
You just read the input file. _________________ The day you stop learning the dinosaur becomes extinct |
|
Back to top |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Fri Feb 03, 2006 12:32 pm Post subject: |
|
|
I assume that program A is not expecting to get information created by program B. If it is then your application is designed incorrectly. An online program should (almost) never need to submit a job and wait for the results. Almost anything you can do in batch you an do online. |
|
Back to top |
|
 |
ha.rajamohamed Beginner
Joined: 29 Jan 2006 Posts: 71 Topics: 22
|
Posted: Fri Feb 03, 2006 1:34 pm Post subject: |
|
|
ok as Mervyn said, I had moved the content in the batch job, Now i am facing problem on receiveing the value in the Program B. Can anyone help me. In JCL in had given the following value
//CTLCARD DD *
dummy
code
/*
In the prorgam B i am getting by using
Var1 = strip(ctlparm.1)
Var2 = strip(ctlparm.2)
But I am not getting any values in the Var1 and Var2 |
|
Back to top |
|
 |
superk Advanced

Joined: 19 Dec 2002 Posts: 684 Topics: 5
|
Posted: Fri Feb 03, 2006 2:31 pm Post subject: |
|
|
What am I missing on this whole conversation?
Wouldn't A create the JCL and pass the parameter(s) to B in a PARM statement, i.e.
Code: |
//RUNEXEC EXEC PGM=IRXJCL,PARM='B parameter1 parameter2'
//SYSEXEC DD DISP=SHR,DSN=MY.EXEC
|
and then B would use the statement PARSE ARG parm1 parm2
to retrieve the parameters? |
|
Back to top |
|
 |
ha.rajamohamed Beginner
Joined: 29 Jan 2006 Posts: 71 Topics: 22
|
Posted: Fri Feb 03, 2006 3:24 pm Post subject: |
|
|
Thanks you very much superK, my program is working fine, I am struggled for 10 hrs for this PARSE ARG parm1 parm2, |
|
Back to top |
|
 |
|
|