View previous topic :: View next topic |
Author |
Message |
danm Intermediate
Joined: 29 Jun 2004 Posts: 170 Topics: 73
|
Posted: Wed Jul 11, 2007 2:58 pm Post subject: EXECIO with rc = 4 |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Wed Jul 11, 2007 4:14 pm Post subject: |
|
|
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 |
|
 |
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Wed Jul 11, 2007 5:50 pm Post subject: |
|
|
Well there is always a way around anything
If you get that problem, you could determine the files allocated to the dd and read each one individually |
|
Back to top |
|
 |
|
|