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: 10274
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: 2435
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
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
No new posts REXX WTO for console message bipinpeter CLIST & REXX 6 Tue Jun 27, 2017 3:56 pm
No new posts Convert CLIST to REXX cvnlynn CLIST & REXX 12 Tue Jun 27, 2017 2:06 am


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