MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Passing values between rexx program

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
ha.rajamohamed
Beginner


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Fri Feb 03, 2006 4:39 am    Post subject: Passing values between rexx program Reply with quote

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
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Fri Feb 03, 2006 6:22 am    Post subject: Reply with quote

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
View user's profile Send private message
ha.rajamohamed
Beginner


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Fri Feb 03, 2006 7:28 am    Post subject: Reply with quote

Mervyn, another question, how to get a variable content.
_________________
RAJA MOHAMED
Back to top
View user's profile Send private message
Mervyn
Moderator


Joined: 02 Dec 2002
Posts: 415
Topics: 6
Location: Hove, England

PostPosted: Fri Feb 03, 2006 9:42 am    Post subject: Reply with quote

You just read the input file.
_________________
The day you stop learning the dinosaur becomes extinct
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Fri Feb 03, 2006 12:32 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
ha.rajamohamed
Beginner


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Fri Feb 03, 2006 1:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
superk
Advanced


Joined: 19 Dec 2002
Posts: 684
Topics: 5

PostPosted: Fri Feb 03, 2006 2:31 pm    Post subject: Reply with quote

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
View user's profile Send private message
ha.rajamohamed
Beginner


Joined: 29 Jan 2006
Posts: 71
Topics: 22

PostPosted: Fri Feb 03, 2006 3:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group