IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Program is abended with errors, but it creaed the file


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
jmalli
Currently Banned

New User


Joined: 19 Jul 2006
Posts: 8

PostPosted: Thu Sep 14, 2006 1:01 pm
Reply with quote

HI
after exicution of the job,i got some error,i corrected that,again when i run the job its giving error.because the file is created.can you tell me how to resolve it
Back to top
View user's profile Send private message
guptae

Moderator


Joined: 14 Oct 2005
Posts: 1208
Location: Bangalore,India

PostPosted: Thu Sep 14, 2006 1:51 pm
Reply with quote

U can use IDCAMS to delete the file.
give it in the first step

Code:
//DELSTEP1 EXEC  IDCAMS                 
//SYSPRINT DD SYSOUT=*                   
//SYSIN    DD *                         
   DELETE    filename
/*
Back to top
View user's profile Send private message
UmeySan

Active Member


Joined: 22 Aug 2006
Posts: 771
Location: Germany

PostPosted: Thu Sep 14, 2006 4:51 pm
Reply with quote

Hi !

To ommit an not-cataloged-two you can use an IEFBR14-Step at top of your job to allways delete all the files, you are creating in your jobstream.

Code:
//STEP010  EXEC PGM=IEFBR14                                 
//*                                                         
//DD01     DD DSN=IER1337.MIA01250.S307.INSERT.DARLALLE,     
//            DISP=(MOD,DELETE,DELETE),SPACE=(TRK,(1,1))     
//DD02     DD DSN=IER1337.MIA01250.S307.INSERT.DARLINST,     
//            DISP=(MOD,DELETE,DELETE),SPACE=(TRK,(1,1))     
//DD03     DD DSN=IER1337.MIA01250.S307.INSERT.P1LSTDAT,     
//            DISP=(MOD,DELETE,DELETE),SPACE=(TRK,(1,1))     

Regards, UmeySan
Back to top
View user's profile Send private message
Shanu.sukoor

New User


Joined: 31 Jan 2006
Posts: 32
Location: India

PostPosted: Thu Sep 14, 2006 9:34 pm
Reply with quote

or you can try deleting the dataset thru TSO

TSO DEL'datasaet name'
Back to top
View user's profile Send private message
raak

Active User


Joined: 23 May 2006
Posts: 166
Location: chennai

PostPosted: Fri Oct 06, 2006 9:33 pm
Reply with quote

hi

u can give the disposition as disp=(new,catlg,delete)... this will delete the dataset in case of unsuccessful execution of the particular step...

is this what u wanted?
Back to top
View user's profile Send private message
rohit jaiswal
Warnings : 2

New User


Joined: 09 Mar 2006
Posts: 36
Location: hyderabad,A.P

PostPosted: Sat Oct 07, 2006 4:04 pm
Reply with quote

hi jmalli

we have a utility that we use in our shop that is U11RMS by using this utility after the joblib statement when ever a job is run again all the datasets that are created will be deleted automatically. so there is no need to change the disposition to old and run it.

it is as follows

Code:
//U11RMS   EXEC PGM=U11RMS,PARM='F'
//RMSPRNT  DD  SYSOUT=*           
//SYSPRINT DD  SYSOUT=*           
//SYSOUT   DD  SYSOUT=*         



hope this may help u.
please correct me if i m wrong

regards
rohit
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts How to split large record length file... DFSORT/ICETOOL 7
No new posts Using API Gateway from CICS program CICS 0
No new posts Extracting Variable decimal numbers f... DFSORT/ICETOOL 17
No new posts SFTP Issue - destination file record ... All Other Mainframe Topics 2
No new posts COBOL ZOS Web Enablement Toolkit HTTP... COBOL Programming 0
Search our Forums:

Back to Top