In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3
Moderators: Frank Yaeger , DikDude , Moderator Group
arrbee
Active Member
Posts: 144 Joined: Fri Feb 24, 2006 11:33 am
Post
by arrbee » Fri Feb 24, 2006 11:43 am
Hi,
I am using the below JCL to clear the content of a PS file using IEBGENER.
But, it is ending with an RC of 12.
Code: Select all
//********************************************************************
//* EMPTY OUT THE DATASET USING IEBGENER *
//********************************************************************
//*
//STEP01 EXEC PGM=IEBGENER
//*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//*
//SYSUT2 DD DSN=XXXXM.XXXXXS.XXXY,DISP=SHR
//SYSUT1 DD DUMMY
//*
//SYSIN DD DUMMY
Any suggestions why it is so? Also, let me know it is possible with IDCAMS?
Arr Bee
-------------
?My joy in learning is partly that it enables me to teach? - Seneca(Roman philosopher, mid-1st century AD)
pkaushi
Member
Posts: 9 Joined: Mon Feb 06, 2006 1:45 pm
Post
by pkaushi » Fri Feb 24, 2006 4:15 pm
HI ,
I really dont know why is it not working as i tried the same code in my machine and it worked.....
//STEP01 EXEC PGM=IEBGENER
//*
//SYSOUT DD SYSOUT=*
//SYSPRINT DD SYSOUT=*
//*
//SYSUT2 DD DSN=xxx.xxx.xx,DISP=SHR
//SYSUT1 DD DUMMY
//*
//SYSIN DD DUMMY
Try submitting the jcl again. It should work out....
Thanks and Regards,
Prashant
Rupesh.KOthari
Member
Posts: 17 Joined: Thu Feb 16, 2006 5:27 pm
Post
by Rupesh.KOthari » Fri Feb 24, 2006 6:11 pm
Hi,
It is working in my shop........
Please change the position of //SYSUT2 and //SYSUT1 and resubmit the JCL.
Hoep it helps
------------------------
Thanks & Regards
Rupesh
-----------------------
Sun Shines Everywhere
Frank Yaeger
Moderator
Posts: 812 Joined: Sat Feb 18, 2006 5:45 am
Location: San Jose, CA
Contact:
Post
by Frank Yaeger » Sat Feb 25, 2006 1:40 am
arrbee,
You probably need to specify a RECFM and LRECL for the SYSUT1 DD DUMMY that matches your SYSUT2 data set. For example:
//SYSUT1 DD DUMMY,RECFM=FB,LRECL=80
Note that this might work without specifying RECFM and LRECL in some shops because the values are being defaulted (e.g. by SMS). But in your shop (and in mine), you need to specify attributes for DUMMY that match those attributes for your output data set.
Guest
Post
by Guest » Sat Mar 04, 2006 12:05 pm
thank u guys. My doubt was regarding the ending the job with rc of 12.
academyindia4
Post
by academyindia4 » Mon Feb 01, 2016 10:59 pm
<< Content deleted By Admin >>
Free tutorials from mainframegurukul
JCL Tutorial Covers all important JCL concepts.
Cobol Tutorial This tutorials covers all Cobol Topics from STRING to COMP-3.
DB2 Tutorial DB2 Tutorial focuses on DB2 COBOL Programming.
SORT Tutorial This Tutorial covers all important aspects of DFSORT with examples
CICS Tutorial This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Mainframe Interview questions
Mainframe Tools and others