View previous topic :: View next topic
|
Author |
Message |
bhavin.mehta
New User
Joined: 25 Jun 2012 Posts: 34 Location: India
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10873 Location: italy
|
|
|
|
we do not care about the pseudo code.
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 |
|
|
PeterHolland
Global Moderator
Joined: 27 Oct 2009 Posts: 2481 Location: Netherlands, Amstelveen
|
|
|
|
Well, in your JCL example you FREE the files BEFORE executing your transfer. |
|
Back to top |
|
|
|