member of DS was DELETED



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

member of DS was DELETED

Postby sailing511 » Wed Dec 26, 2007 12:34 pm

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...
sailing511
 
Posts: 4
Joined: Wed Dec 26, 2007 12:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: member of DS was DELETED

Postby sailing511 » Wed Dec 26, 2007 12:47 pm

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?
sailing511
 
Posts: 4
Joined: Wed Dec 26, 2007 12:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: member of DS was DELETED

Postby sailing511 » Fri Dec 28, 2007 12:49 am

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...
sailing511
 
Posts: 4
Joined: Wed Dec 26, 2007 12:17 pm
Has thanked: 0 time
Been thanked: 0 time

Re: member of DS was DELETED

Postby sailing511 » Fri Dec 28, 2007 1:19 am

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.
sailing511
 
Posts: 4
Joined: Wed Dec 26, 2007 12:17 pm
Has thanked: 0 time
Been thanked: 0 time


Return to JCL

 


  • Related topics
    Replies
    Views
    Last post