Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Program is abended with errors, but it creaed the file

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
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    Post subject: Program is abended with errors, but it creaed the file
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: 1187
Location: Bangalore,India

PostPosted: Thu Sep 14, 2006 1:51 pm    Post subject:
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: 755
Location: Germany

PostPosted: Thu Sep 14, 2006 4:51 pm    Post subject:
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    Post subject:
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    Post subject:
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    Post subject: Re: Program is abended with errors, but it creaed the file
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Changing of LRECL of a file abdulrafi DFSORT/ICETOOL 2 Fri Mar 24, 2017 3:25 pm
No new posts splitting a file abdulrafi DFSORT/ICETOOL 4 Fri Mar 24, 2017 11:51 am
No new posts Receive a file using PCOMM macro Harald.v.K IBM Tools 0 Thu Mar 23, 2017 6:50 pm
No new posts Export flat file data into excel sheet murali.andaluri DFSORT/ICETOOL 2 Mon Mar 20, 2017 5:39 pm
No new posts Formatting VB File Learncoholic DFSORT/ICETOOL 3 Mon Mar 20, 2017 12:29 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us