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

JCL -> Rexx -> XMITIP : Doesnt work


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

New User


Joined: 25 Jun 2012
Posts: 34
Location: India

PostPosted: Thu Aug 06, 2015 11:09 pm
Reply with quote

I have a REXX which builds 'n' files and then emails them using XMITIP. Below is the pseudo code

1. ALLOC 'n' files
2. EXECIO to write into 'n' files
3. "%XMITIP user@domain.com FILEDD n1 n2 SUBJECT 'Test Email'"
4. FREE 'n' files

Above thing works fine. Problem comes when I run the above REXX thru a JCL. Results are as below:-

1. ALLOC 'n' files
2. EXECIO to write into 'n' files
3. FREE files
4. "%XMITIP user@domain.com FILEDD n1 n2 SUBJECT 'Test Email'"

Files are getting free before the XMITIP, thus the email syntax fails with DDname not available.

Why does the JCL makes the REXX run out of sequence?
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Fri Aug 07, 2015 2:01 am
Reply with quote

we do not care about the pseudo code. icon_cool.gif

if You want somebody to debug YOUR error
You MUST post the REAL code

and ... running with trace "R" will provide You with enough info to debug the problem Yourself.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Fri Aug 07, 2015 10:58 am
Reply with quote

Well, in your JCL example you FREE the files BEFORE executing your transfer.
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