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
No new posts Executing OO COBOL program invoking J... Virendra Shambharkar COBOL Programming 2 Tue Jan 10, 2017 6:37 pm
This topic is locked: you cannot edit posts or make replies. Calling REXX code from ISPF panel sanchita dey TSO/ISPF 4 Mon Jan 02, 2017 5:13 pm
No new posts SYMNAMES problem jacobdng DFSORT/ICETOOL 7 Thu Dec 22, 2016 7:47 am
No new posts REXX DB2: Dynamic allocation of DB2.D... BHAS CLIST & REXX 3 Mon Dec 19, 2016 8:26 pm
No new posts find particular member name in PDS us... ravi243 CLIST & REXX 10 Mon Dec 19, 2016 6:44 pm


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