Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Problem while executing REXX via JCL

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
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    Post subject: Problem while executing REXX via JCL
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

Moderator Team Head


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

PostPosted: Thu Jan 24, 2008 11:49 pm    Post subject: Reply to: Problem while executing REXX via JCL
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    Post subject: Reply to: Problem while executing REXX via JCL
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    Post subject: Reply to: Problem while executing REXX via JCL
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    Post subject: Reply to: Problem while executing REXX via JCL
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    IBMMAINFRAMES.com Support Forums -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Passing data from REXX to C programme... chong.zhou CLIST & REXX 3 Wed Jul 26, 2017 9:11 pm
No new posts Problem commiting to DB2 from IMS MPP Ole Soerensen IMS DB/DC 2 Wed Jul 26, 2017 5:19 pm
No new posts REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts How system know which REXX to excute? jackzhang75 CLIST & REXX 14 Thu Jul 06, 2017 1:09 am
No new posts REXX - Dynamic file Creation d_sarlie CLIST & REXX 7 Tue Jun 27, 2017 7:30 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us