MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

EXECIO with rc = 4

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF
View previous topic :: View next topic  
Author Message
danm
Intermediate


Joined: 29 Jun 2004
Posts: 170
Topics: 73

PostPosted: Wed Jul 11, 2007 2:58 pm    Post subject: EXECIO with rc = 4 Reply with quote

Code:

//TESTEXEC PGM=IKJEFT01,
// PARM='%TEST'
//INREC   DD DSN=DATASET1,DISP=SHR
//            DD DSN=DATASET2,DISP=SHR

....
TEST  Program:

"EXECIO 100 DISKR INREC 1 (STEM REC."

I submit the REXX program TEST in the background. Test program execute EXECIO to read the concatenated data sets 1 and 2. It works fine if both dataset 1 and 2 are not empty. If anyone is empty, I got a return code of 4 from EXECIO. Is there a workaound except merge the 2 datasets into a single temporary dataset prior to execute TEST on the temporary dataset?
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Wed Jul 11, 2007 4:14 pm    Post subject: Reply with quote

Nope! No way around receiving an RC=4 when you attempt to EXECIO DISKR/RU a concatenation of datasets where one is empty.



edited by dbz to modify the post - correct some grammar.
_________________
Dick Brenholtz
American living in Varel, Germany
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Wed Jul 11, 2007 5:50 pm    Post subject: Reply with quote

Well there is always a way around anything Smile
If you get that problem, you could determine the files allocated to the dd and read each one individually
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> TSO and ISPF All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group