View previous topic :: View next topic
|
Author |
Message |
tamsmukh
New User
Joined: 24 Jan 2008 Posts: 5 Location: san antonio,Tx
|
|
|
|
I am executing REXX code called BATCH1 through a job. The REXX code is calling another REXX code called PARMPTRS. The code PARMPTRS is returning a value GYEXE. The code thereafter in BATCH1 is like this
Code: |
If GYEXE == PTR then
do
LODNM= DW1xts1L
end
else
do
if GYEXE == FIXED then
do
LODNM= DW1xts2L
end
end
|
further in BATCH1 code we are populating this LODNM value in a job that is getting submitted from BATCH1.
The problem I'm facing is that the value of LODNM is not getting substituted in the JCl to be submitted. In the JCL it comes as LODNM instead of either DW1xts1L or DW1xts2L. If I execute the BATCH1 manually then I get proper results. How can I overcome this problem? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
Please post your runtime TRACE output showing the whole process. |
|
Back to top |
|
|
tamsmukh
New User
Joined: 24 Jan 2008 Posts: 5 Location: san antonio,Tx
|
|
|
|
Sorry Kevin, I will not be able to access my office computer from home and there is no way I ca paste the trace output on this forum. Is there anything specific you would like to know? |
|
Back to top |
|
|
cpuhawg
Active User
Joined: 14 Jun 2006 Posts: 331 Location: Jacksonville, FL
|
|
|
|
IF LODNM is a symbolic and its value is to be set to DW1XTS1L or DW1XTS2L, then the statement should look like
Literals must be surrounded by quotes or double quotes.
The same with PTR and FIXED if they are literals being checked against the symbolic GYEXE.
You can place a statement TRACE 'I' in the REXX program. When it executes in batch the output will indicate the value of all symbolics throughout the program. |
|
Back to top |
|
|
tamsmukh
New User
Joined: 24 Jan 2008 Posts: 5 Location: san antonio,Tx
|
|
|
|
Hi cpuhawg,
Thanks for the tip, I will definitely try this and see if it works. |
|
Back to top |
|
|
|