View previous topic :: View next topic
|
Author |
Message |
srramesh Currently Banned New User
Joined: 11 Jul 2008 Posts: 10 Location: Chennai
|
|
|
|
Hi i have created a jcl in the following format
deleting a file...(file01)
create a file...(file01)
populate some values in it.
my question is while submitting the job first time the file does not exist to delete..So it shows error.what i have to do.? |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Ramesh,
Use the "Code" option provided here instead of attaching screenshots.
Quote: |
So it shows error.what i have to do.? |
What error it is showing?
Thanks,
Arun |
|
Back to top |
|
|
Agni
New User
Joined: 22 Nov 2007 Posts: 83 Location: Chennai
|
|
|
|
Ramesh,
Please post the error that you are getting.
I suppose there won't be any error because DISP option MOD would create the dataset if it is not existing and in this case it would be deleted even the job abends or does not abend for some reason.
Cheers
Agni |
|
Back to top |
|
|
Prasanthhere
Active User
Joined: 03 Aug 2005 Posts: 306
|
|
|
|
You are using two steps with the same name step1 change it and check . Otherwise mod,del,del shouldn't throw any error even if there is no dataset to delete |
|
Back to top |
|
|
Anuj Dhawan
Superior Member
Joined: 22 Apr 2006 Posts: 6250 Location: Mumbai, India
|
|
|
|
Hi,
Prasanthhere wrote: |
You are using two steps with the same name step1 change it and check . |
This won't create any problem, yup but in SYSOUT, if JOB gets abended, it would be tough to find which 'step1' is which step ?
Well, something else is there which is still not clear..JOBs are working for me at my shop,TS need to post the error message as asked earlier. |
|
Back to top |
|
|
srramesh Currently Banned New User
Joined: 11 Jul 2008 Posts: 10 Location: Chennai
|
|
|
|
here i have attached the code n respective error msg |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
Did u tried with changing the step name.
Regards
R KARTHIK |
|
Back to top |
|
|
Arun Raj
Moderator
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
|
|
|
|
Ramesh,
As the error message says, provide the SPACE parameter in the first step.
Thanks,
Arun |
|
Back to top |
|
|
srramesh Currently Banned New User
Joined: 11 Jul 2008 Posts: 10 Location: Chennai
|
|
|
|
@karthik
yes.. i tried |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi,
if the file does not exist, just code the space and unit parameter.
SPACE=(TRK,(0))
Gerry |
|
Back to top |
|
|
karthikr44
Active User
Joined: 25 Aug 2007 Posts: 235 Location: Chennai
|
|
|
|
Hi,
U have to give space parameter.
see the belo example
Code: |
//PSTP0010 EXEC PGM=IEFBR14
//E2S1SRT DD DSN=&PFXEGL..DSEME2S1.EUSDGRP.SRT,
// DISP=(MOD,DELETE,DELETE),
// SPACE=(CYL,(1,1)),
// UNIT=SYSDA
|
|
|
Back to top |
|
|
expat
Global Moderator
Joined: 14 Mar 2007 Posts: 8797 Location: Welsh Wales
|
|
|
|
I must admit that I prefer IDCAMS for pre process deletes because it will delete a migrated file without recall. |
|
Back to top |
|
|
Gousiya Mulla
New User
Joined: 02 Jun 2008 Posts: 87 Location: Bangalore
|
|
|
|
Quote: |
here i have attached the code n respective error msg |
Hi ,
I have tried the same code what you mentioned , It perfectly ran for me . Please find the below code and output message .
//STEPDEL1 EXEC PGM=IEFBR14
//FILE1 DD DSN=TFPZ.TEST5.FILE
//STEPDEL1 EXEC PGM=IEFBR14
//OUTFILE DD DSN=TFPZ.TEST5.FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(5,3),RLSE),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//*
Ouput Message :(In Brief)
STEPDEL1 - STEP WAS EXECUTED - COND CODE 0000
TFPZ.TEST5.FILE DELETED, DDNAME=FILE1
SMS ALLOCATED TO DDNAME (OUTFILE )
DSN (TFPZ.TEST5.FILE
STEPDEL1 - STEP WAS EXECUTED - COND CODE 0000
TFPZ.TEST5.FILE RETAINED DDNAME=OUTFILE
Check it out . |
|
Back to top |
|
|
teevijay
New User
Joined: 20 Mar 2006 Posts: 22
|
|
|
|
Interesting !The code worked perfectly for me. |
|
Back to top |
|
|
teevijay
New User
Joined: 20 Mar 2006 Posts: 22
|
|
|
|
Chek it out !! hope it gives some insight !
IGD17045I SPACE NOT SPECIFIED FOR ALLOCATION OF DATA SET dsname
Explanation: No space was specified on the JCL or in the data class for
the allocation of the data set.
In the message text:
dsname The data set name.
System Action: The allocation fails.
Application Programmer Response: Correct the space specification in
either the JCL DEFINE statement or in the data class. Then resubmit the
allocation request. |
|
Back to top |
|
|
UmeySan
Active Member
Joined: 22 Aug 2006 Posts: 771 Location: Germany
|
|
|
|
There is nothing intresting.
It is exactly as gcicchet already mentioned some post's before.
If you have a clear look at the JCL of srramesh and Gousiya Mulla,
you could see the difference.
Add space-parameter in the delete-step, and that's it. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello srramesh,
As you've been asked before - do not use images/screen captures to show your info. Used the "Code" tag on the Reply panel.
If other posts arrive with images, they will be deleted. |
|
Back to top |
|
|
gcicchet
Senior Member
Joined: 28 Jul 2006 Posts: 1702 Location: Australia
|
|
|
|
Hi Gousiya,
your post will not work even though you say it worked.
//STEPDEL1 EXEC PGM=IEFBR14
//FILE1 DD DSN=TFPZ.TEST5.FILE
//STEPDEL1 EXEC PGM=IEFBR14
//OUTFILE DD DSN=TFPZ.TEST5.FILE,
// DISP=(NEW,CATLG,DELETE),
// UNIT=SYSDA,SPACE=(TRK,(5,3),RLSE),
// DCB=(DSORG=PS,RECFM=FB,LRECL=80,BLKSIZE=800)
//*
In step STEPDEL1 you have not coded any disposition, the only reason it worked is because the file did not exist, no disp defaults to
DISP=(NEW,DELETE), had the file existed it would have resulted in a JCL error, duplicate name.
Gerry |
|
Back to top |
|
|
Gousiya Mulla
New User
Joined: 02 Jun 2008 Posts: 87 Location: Bangalore
|
|
|
|
Quote: |
had the file existed it would have resulted in a JCL error |
Hi Gerry ,
Yes it is , But I was checking for the code mentioned as initial query by srramesh . |
|
Back to top |
|
|
|