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: 4648
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
This topic is locked: you cannot edit posts or make replies. Need help on If condition continuatio... ashok_uddaraju CLIST & REXX 4 Fri May 19, 2017 8:55 am
No new posts Running an REXX EXEC implicitly sho7hills CLIST & REXX 3 Thu Apr 20, 2017 8:14 am
No new posts Need help in REXX CALL program Raje1002 CLIST & REXX 5 Wed Apr 19, 2017 11:18 pm
No new posts Strings with double quotes having pro... raja Arumugam All Other Mainframe Topics 11 Thu Mar 30, 2017 10:34 am
No new posts Problem reading GTF trace output danik56 ABENDS & Debugging 7 Thu Mar 16, 2017 1:02 pm


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