Page 1 of 1

IEBGENER - Emptying dataset.

Posted: Fri Feb 24, 2006 11:43 am
by arrbee
Hi,

I am using the below JCL to clear the content of a PS file using IEBGENER. :idea: 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?

Posted: Fri Feb 24, 2006 4:15 pm
by pkaushi
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....

Posted: Fri Feb 24, 2006 6:11 pm
by Rupesh.KOthari
Hi,

It is working in my shop........

Please change the position of //SYSUT2 and //SYSUT1 and resubmit the JCL.

Hoep it helps

Posted: Sat Feb 25, 2006 1:40 am
by Frank Yaeger
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.

Posted: Sat Mar 04, 2006 12:05 pm
by Guest
thank u guys. My doubt was regarding the ending the job with rc of 12.

Topic deleted by Admin

Posted: Mon Feb 01, 2016 10:59 pm
by academyindia4
<< Content deleted By Admin >>