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...
member of DS was DELETED
-
- Posts: 4
- Joined: Wed Dec 26, 2007 12:17 pm
- Skillset: JCL, COBOL
- Referer: recommended by ibmmainframes.com
-
- Posts: 4
- Joined: Wed Dec 26, 2007 12:17 pm
- Skillset: JCL, COBOL
- Referer: recommended by ibmmainframes.com
Re: member of DS was DELETED
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?
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?
-
- Posts: 4
- Joined: Wed Dec 26, 2007 12:17 pm
- Skillset: JCL, COBOL
- Referer: recommended by ibmmainframes.com
Re: member of DS was DELETED
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...
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...
-
- Posts: 4
- Joined: Wed Dec 26, 2007 12:17 pm
- Skillset: JCL, COBOL
- Referer: recommended by ibmmainframes.com
Re: member of DS was DELETED
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.
SYSTSPRT DD SYSOUT=*
SYSPRINT DD SYSOUT=*
I had thought that these DD should be directed to the designated file.