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
 

 

JCL -> Rexx -> XMITIP : Doesnt work

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

New User


Joined: 25 Jun 2012
Posts: 32
Location: India

PostPosted: Thu Aug 06, 2015 11:09 pm    Post subject: JCL -> Rexx -> XMITIP : Doesnt work
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

Global Moderator


Joined: 14 Mar 2007
Posts: 10256
Location: italy

PostPosted: Fri Aug 07, 2015 2:01 am    Post subject: Reply to: JCL -> Rexx -> XMITIP : Doesnt work
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: 2433
Location: Netherlands, Amstelveen

PostPosted: Fri Aug 07, 2015 10:58 am    Post subject:
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    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 Fileaid 2 commands instream work. In ... descann Compuware & Other Tools 2 Tue May 16, 2017 3:31 pm
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 Splitting of single report to seperat... abdulrafi TSO/ISPF 7 Mon Mar 27, 2017 3:59 pm


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