View previous topic :: View next topic
|
Author |
Message |
jmalli Currently Banned New User
Joined: 19 Jul 2006 Posts: 8
|
|
|
|
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 |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
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 |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
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 |
|
|
Shanu.sukoor
New User
Joined: 31 Jan 2006 Posts: 32 Location: India
|
|
|
|
or you can try deleting the dataset thru TSO
TSO DEL'datasaet name' |
|
Back to top |
|
|
raak
Active User
Joined: 23 May 2006 Posts: 166 Location: chennai
|
|
|
|
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 |
|
|
rohit jaiswal Warnings : 2 New User
Joined: 09 Mar 2006 Posts: 36 Location: hyderabad,A.P
|
|
|
|
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 |
|
|
|