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: 10202
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: 2422
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 What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
No new posts Replace repeated JCL with looping REXX prino CLIST & REXX 3 Thu Oct 13, 2016 5:30 am
This topic is locked: you cannot edit posts or make replies. Need to code a Rexx PGM sundaram.naveen CLIST & REXX 18 Thu Oct 06, 2016 6:45 pm
No new posts Need Rexx Program to Load in to DB2 T... Hareesh Verma CLIST & REXX 22 Tue Sep 20, 2016 2:59 pm


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