Page 1 of 1

member of DS was DELETED

PostPosted: Wed Dec 26, 2007 12:34 pm
by sailing511
Hi folks,
I'm a newbie of MainFrame, now stuck in a problem for several days.
I'm trying to write the java application stdout (which is supposed to be under /u/userid/***)to a designated path.
I used the following code to copy the stdout to that path.

//COPYOUT EXEC PGM=IKJEFT01,DYNAMNBR=300,COND=EVEN
//HFSOUT DD PATH='/u/userid/stdout'
//SYSTSPRT DD DSN=&SYSUID..OUTPUT(JAVALOOP),
// SPACE=(CYL,(100,10,5))
//MYOUT DD DSN=&SYSUID..OUTPUT(JAVALOOP),
// SPACE=(CYL,(100,10,5))
//SYSTSIN DD *
OCOPY INDD(HFSOUT) OUTDD(MYOUT)
*/

But after that, the OUTPUT data set is still empty. I traced the SYSMSG and found out that the DATA SET was deleted.
IEF285I SYSUID.OUTPUT DELETED
IEF285I VOL SER NOS= VPWRKZ.

Anybody has some idea about the reason why there is still no member in the data set?
Thank you...

Re: member of DS was DELETED

PostPosted: Wed Dec 26, 2007 12:47 pm
by sailing511
Z900452.PART3.OUTPUT DELETED
VOL SER NOS= VPWRKE.
Z900452.PART3.OUTPUT DELETED
VOL SER NOS= VPWRKZ.

I missed something...Is that because I allocated different spaces to the same member of DS (by SYSTSPRT & MYOUT)and caused kinda of conflicts?

Re: member of DS was DELETED

PostPosted: Fri Dec 28, 2007 12:49 am
by sailing511
I fixed it. Add DISP=SHR rather than SPACE parameter.
But the problem now is that the contents of the stdout was not copied to the designated file. Instead, what is in that file is
READY
OCOPY INDD(HFSOUT) OUTDD(MYOUT)
READY

Still no idea...

Re: member of DS was DELETED

PostPosted: Fri Dec 28, 2007 1:19 am
by sailing511
I figured it out, making the following modifications:
SYSTSPRT DD SYSOUT=*
SYSPRINT DD SYSOUT=*
I had thought that these DD should be directed to the designated file.