IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Problem while executing REXX via JCL


IBM Mainframe Forums -> CLIST & REXX
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
tamsmukh

New User


Joined: 24 Jan 2008
Posts: 5
Location: san antonio,Tx

PostPosted: Thu Jan 24, 2008 11:36 pm
Reply with quote

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

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Jan 24, 2008 11:49 pm
Reply with quote

Please post your runtime TRACE output showing the whole process.
Back to top
View user's profile Send private message
tamsmukh

New User


Joined: 24 Jan 2008
Posts: 5
Location: san antonio,Tx

PostPosted: Thu Jan 24, 2008 11:58 pm
Reply with quote

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

Active User


Joined: 14 Jun 2006
Posts: 331
Location: Jacksonville, FL

PostPosted: Fri Jan 25, 2008 1:02 am
Reply with quote

IF LODNM is a symbolic and its value is to be set to DW1XTS1L or DW1XTS2L, then the statement should look like

Code:

    LODNM= 'DW1XTS2L'


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

New User


Joined: 24 Jan 2008
Posts: 5
Location: san antonio,Tx

PostPosted: Fri Jan 25, 2008 1:39 am
Reply with quote

Hi cpuhawg,

Thanks for the tip, I will definitely try this and see if it works.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CLIST & REXX

 


Similar Topics
Topic Forum Replies
No new posts Compile Several JCL JOB Through one r... CLIST & REXX 4
No new posts Running REXX through JOB CLIST & REXX 13
No new posts Error to read log with rexx CLIST & REXX 11
No new posts isfline didnt work in rexx at z/OS ve... CLIST & REXX 7
No new posts run rexx code with jcl CLIST & REXX 15
Search our Forums:

Back to Top