Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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: 757
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 How to write Rexx program to size and... sreejeshcs CLIST & REXX 14 Thu Oct 12, 2017 7:26 am
No new posts Accessing CICS tran with map from JCL... navdeepaggarwal CICS 5 Tue Oct 03, 2017 6:15 pm
No new posts Execute JCL step based on the content... sprikitik JCL & VSAM 2 Tue Oct 03, 2017 10:03 am
This topic is locked: you cannot edit posts or make replies. PS file data should be passed as symb... d_sarlie JCL & VSAM 15 Tue Oct 03, 2017 5:18 am
No new posts Garbage on output file Hervey Martinez SYNCSORT 4 Wed Sep 27, 2017 12:50 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us